The store() method in both the web and API UsersController only strips the superuser permission when a non-superuser creates a user. It does not strip the admin permission. This allows any authenticated user with the users.create permission to create a new user with full admin privileges.
The users.create permission may commonly be delegated to HR staff, department leads, or similar roles.
Patched in aea3877718
{
"github_reviewed_at": "2026-06-23T23:06:18Z",
"severity": "MODERATE",
"cwe_ids": [
"CWE-862"
],
"github_reviewed": true,
"nvd_published_at": null
}