User Registration – Custom Registration Form
The issue is related to a missing capability check on the `form save action()` function, allowing authenticated attackers with subscriber-level access and above to update the registration form. This enables them to make the default registration role an administrator, subsequently allowing the attacker to register an account as an administrator on the site.