security: automated internal backport of patch GHSA-wr38-7xg8-fqxr.sec.patch to authentik-main (#22733)

Automated internal backport of patch GHSA-wr38-7xg8-fqxr.sec.patch to authentik-main

Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
This commit is contained in:
authentik-automation[bot]
2026-05-28 16:38:49 +02:00
committed by GitHub
parent 9e03bb3b26
commit 3243c974b2
2 changed files with 27 additions and 0 deletions
+2
View File
@@ -133,6 +133,7 @@ class UserSourceConnectionSerializer(SourceSerializer):
"last_updated",
]
extra_kwargs = {
"user": {"read_only": True},
"created": {"read_only": True},
"last_updated": {"read_only": True},
}
@@ -173,6 +174,7 @@ class GroupSourceConnectionSerializer(SourceSerializer):
"last_updated",
]
extra_kwargs = {
"group": {"read_only": True},
"created": {"read_only": True},
"last_updated": {"read_only": True},
}
@@ -0,0 +1,25 @@
# GHSA-5wcc-hf24-rf5h
## `UserSourceConnection.user` and `GroupSourceConnection.group` are changeable through the API
### Summary
An attacker with the ability to change a source connection, and an account in one of the configured sources can log into any account.
### Patches
authentik 2026.5.1, 2026.2.4, and 2025.12.6 fix this issue.
### Impact
`UserSourceConnection.user` and `GroupSourceConnection.group` are changeable through the API. This lets attackers with low privilege (`*_usersourceconnection`, `*_group*sourceconnection`) misrepresent users/groups as if they were coming from a specific source, with a specific identifier, then authenticate as the victim through that source and identifier.
### Workarounds
Ensure that `*_usersourceconnection`, `*_group*sourceconnection` permissions are only given to trusted admins.
### For more information
If you have any questions or comments about this advisory:
- Email us at [security@goauthentik.io](mailto:security@goauthentik.io)