All vulnerabilities

Servers and applications

CVE-2026-40172

Privilege Escalation via User PATCH: Superuser Group Assignment Bypasses enable_group_superuser

Severity
High 8.1
Published
12 May 2026
Last changed
12 May 2026
Added to UpHeron
3 Nov 2026
Fixed in
2025.12.5, 2026.2.3
Exploit chance
0.5% in the next 30 daysHigher than 46% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Improper privilege management (CWE-269)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Also known as
GHSA-h6x7-hjjc-wjc9
Sources
Project advisories (GitHub)

Description

PATCH /api/v3/core/users/{pk}/ 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.

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.

From goauthentik/authentik's security advisory.

Affected software

SoftwareAffected versions
authentikServers and applications · github:goauthentik/authentik
  • Every version before 2025.12.5
  • Every version before 2026.2.3

About authentik

The authentication glue you need.

From its GitHub repository.
Total installations
1 millionauthentik
GitHub stars
26,351GitHub, 15 Nov 2026
Forks
2,134GitHub, 15 Nov 2026
Latest release
version/2026.8.5GitHub, 15 Nov 2026
Released
21 Oct 2026GitHub
First published on GitHub
30 Dec 2019GitHub

Release lines

ReleaseLatestSecurity fixes
2026.82026.8.5Yes
2026.52026.5.8Yes
2026.22026.2.7Ended 18 Aug 2026
2025.122025.12.6Ended 22 May 2026
2025.102025.10.4Ended 24 Feb 2026
2025.82025.8.6Ended 13 Jan 2026

From endoflife.date.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-40172
  • GitHub Advisory Database https://github.com/advisories/GHSA-h6x7-hjjc-wjc9
  • github.com https://github.com/goauthentik/authentik/security/advisories/GHSA-h6x7-hjjc-wjc9