Improper privilege management in authentik - CVE-2026-40172
Published: May 12, 2026
authentik
Detailed vulnerability description
The vulnerability allows a remote user to escalate privileges.
The vulnerability exists due to improper privilege management in UserSerializer and the PATCH /api/v3/core/users/{pk}/ endpoint when processing user update requests that assign groups. A remote user can send a crafted PATCH request to assign a target user to groups with superuser privileges to escalate privileges.
The issue affects callers with change_user permission on a target user and can be used to add themselves or other permitted users to superuser groups without requiring enable_group_superuser.