Medium (6.9) in gravitl netmaker. EPSS 0.2% chance of exploitation in the next 30 days. Fixed in github.com/gravitl/netmaker 1.5.0.
Netmaker makes networks with WireGuard. Prior to version 1.5.0, 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. This issue has been patched in version 1.5.0.