The user update handler (PUT /api/users/{username}) lacks validation to prevent an admin-role user from assigning the super-admin role during account updates. While the code correctly blocks an admin from assigning the admin role to another user, it does not include an equivalent check for the super-admin role.
Credits Artem Danilov (Positive Technologies)
{
"cwe_ids": [
"CWE-863"
],
"github_reviewed": true,
"github_reviewed_at": "2026-03-09T17:27:49Z",
"nvd_published_at": "2026-03-07T17:15:51Z",
"severity": "MODERATE"
}