CVE-2026-40172: CWE-269: Improper Privilege Management in goauthentik authentik
A privilege escalation vulnerability exists in authentik versions prior to 2025.12.5 and between 2026.2.0-rc1 and 2026.2.2. The PATCH /api/v3/core/users/{pk}/ API allows users with change_user permission on a target user to assign arbitrary groups, including those with superuser privileges, without requiring the enable_group_superuser flag. This bypasses stricter permission controls in group management and enables escalation to administrator-equivalent privileges. The issue is fixed in versions 2025.
AI Analysis
Technical Summary
authentik, an open-source identity provider, contained an improper privilege management vulnerability (CWE-269) in its user update API. Specifically, the PATCH /api/v3/core/users/{pk}/ endpoint allowed callers with the change_user permission to assign any groups to a user, including groups with is_superuser=True, without enforcing the enable_group_superuser requirement. This flaw bypassed the intended stricter permission checks in group management paths, enabling delegated user-management permissions to escalate privileges to superuser level. The vulnerability affects authentik versions before 2025.12.5 and versions from 2026.2.0-rc1 up to but not including 2026.2.3. The issue has been resolved in versions 2025.12.5 and 2026.2.3.
Potential Impact
An attacker or user with the change_user permission on a target user can escalate privileges by assigning superuser groups to that user. This results in administrator-equivalent access, potentially allowing full control over the authentik system. The vulnerability does not affect confidentiality but has high impact on integrity and availability due to privilege escalation.
Mitigation Recommendations
Upgrade authentik to version 2025.12.5 or later, or to version 2026.2.3 or later. These versions contain the fix that enforces the enable_group_superuser requirement and prevents unauthorized assignment of superuser groups via the PATCH user API. Patch status is confirmed fixed in these versions. No other mitigations are indicated.
CVE-2026-40172: CWE-269: Improper Privilege Management in goauthentik authentik
Description
A privilege escalation vulnerability exists in authentik versions prior to 2025.12.5 and between 2026.2.0-rc1 and 2026.2.2. The PATCH /api/v3/core/users/{pk}/ API allows users with change_user permission on a target user to assign arbitrary groups, including those with superuser privileges, without requiring the enable_group_superuser flag. This bypasses stricter permission controls in group management and enables escalation to administrator-equivalent privileges. The issue is fixed in versions 2025.
CVSS v3.1
Score 8.1high
Affected software
pkg:golang/github.com/goauthentik/authentikRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
authentik, an open-source identity provider, contained an improper privilege management vulnerability (CWE-269) in its user update API. Specifically, the PATCH /api/v3/core/users/{pk}/ endpoint allowed callers with the change_user permission to assign any groups to a user, including groups with is_superuser=True, without enforcing the enable_group_superuser requirement. This flaw bypassed the intended stricter permission checks in group management paths, enabling delegated user-management permissions to escalate privileges to superuser level. The vulnerability affects authentik versions before 2025.12.5 and versions from 2026.2.0-rc1 up to but not including 2026.2.3. The issue has been resolved in versions 2025.12.5 and 2026.2.3.
Potential Impact
An attacker or user with the change_user permission on a target user can escalate privileges by assigning superuser groups to that user. This results in administrator-equivalent access, potentially allowing full control over the authentik system. The vulnerability does not affect confidentiality but has high impact on integrity and availability due to privilege escalation.
Mitigation Recommendations
Upgrade authentik to version 2025.12.5 or later, or to version 2026.2.3 or later. These versions contain the fix that enforces the enable_group_superuser requirement and prevents unauthorized assignment of superuser groups via the PATCH user API. Patch status is confirmed fixed in these versions. No other mitigations are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-09T19:31:56.015Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a10ab42e1370fbb483c56ea
Added to database: 05/22/2026, 19:15:14 UTC
Last enriched: 05/29/2026, 20:49:31 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 76
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.