CVE-2026-40172 Details
Description
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.
A vulnerability in authentik, an open-source identity provider, allows for unauthorized privilege escalation by assigning superuser groups to users through the PATCH /api/v3/core/users/{pk}/ API. This issue is present in authentik versions prior to 2025.12.5 and 2026.2.0-rc1 through 2026.2.2. The vulnerability arises because the API allows users with 'change_user' permissions to assign any group, including those with superuser rights, without the necessary safeguards. As a result, users can escalate their privileges to that of an administrator.
Users can upgrade to authentik versions 2025.12.5 or 2026.2.3 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 22, 2026CISA-ADP
Assessed May 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.5 | [email protected] | Release NotesVendor |
| https://github.com/goauthentik/authentik/releases/tag/version%2F2026.2.3 | [email protected] | Release NotesVendor |
| https://github.com/goauthentik/authentik/security/advisories/GHSA-h6x7-hjjc-wjc9 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-269 | Improper Privilege Management | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| authentik | <= 2025.12.4 (semver) <= 2026.2.2 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 22, 2026 | New CVE Received | [email protected] |
Volerion