CVE-2026-40172: authentik: Privilege Escalation via User PATCH: Superuser Group Assignment Bypasses enable_group_superuser
authentik is an open-source identity provider. In versions prior to 2025.12.5 and 2026.2.0-rc1 through 2026.2.2, the PATCH /api/v3/core/users/{pk}/ API allows a caller with changeuser on a target user to assign arbitrary groups through UserSerializer, including groups with issuperuser=True, without requiring enablegroupsuperuser, leading to privilege escalation. This bypasses the stricter permission model enforced in group-management paths and enables delegated user-management permissions to escalate target users to administrator-equivalent privilege. Users with permissions to update groups or permissions to update users are able to add themselves or other users they have permissions on to users which have superuser permissions. This issue has been fixed in versions 22025.12.5 and 2026.2.3.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
authentikto a version that resolves this vulnerability.Fixed in 22025.12.5 - Upgrade
Upgrade
authentikto a version that resolves this vulnerability.Fixed in 2026.2.3
Event History
Frequently Asked Questions
What is the severity of CVE-2026-40172?
The severity of CVE-2026-40172 is high with a score of 8.1.
How do I fix CVE-2026-40172?
To fix CVE-2026-40172, upgrade to versions 2025.12.5 or 2026.2.0-rc1 through 2026.2.2 of Authentik.
What is the impact of CVE-2026-40172?
CVE-2026-40172 allows privilege escalation by enabling arbitrary group assignment, including superuser groups.
Who is affected by CVE-2026-40172?
Users of Authentik versions prior to 2025.12.5 and 2026.2.0-rc1 through 2026.2.2 are affected by CVE-2026-40172.
What is the exploitation vector for CVE-2026-40172?
CVE-2026-40172 can be exploited via the PATCH /api/v3/core/users/{pk}/ API by users with change_user permissions.