CVE-2026-40172
highpriority · track · 0EPSS 0.005 · 46 %ileEUUSEPSS · scored 2026-10-27
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 change_user on a target user to assign arbitrary groups through UserSerializer, including groups with is_superuser=True, without requiring enable_group_superuser, 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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- BIT-authentik-2026-40172authentik: Privilege Escalation via User PATCH: Superuser Group Assignment Bypasses enable_group_superuser2026-06-01vendor · osvUS
authentik is an open-source identity provider. In versions prior to 2025.12.5 and 2026.2.0 through 2026.2.2, the PATCH /api/v3/core/users/{pk}/ API allows a caller with change_user on a target user to assign arbitrary groups through UserSerializer, including groups with is_superuser=True, without requiring enable_group_superuser, 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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (10)
External citations — patches, advisories, analysis.
- https://github.com/goauthentik/authentik/releases/Patchcnnvd
- https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.5cnnvd
- https://github.com/goauthentik/authentik/releases/tag/version%2F2026.2.3cnnvd
- https://github.com/goauthentik/authentik/security/advisories/GHSA-h6x7-hjjc-wjc9cnnvd
- https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.5enisa_euvd
- https://github.com/goauthentik/authentik/releases/tag/version%2F2026.2.3enisa_euvd
- https://github.com/goauthentik/authentik/security/advisories/GHSA-h6x7-hjjc-wjc9enisa_euvd
- https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.5nvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan