CVE-2026-62666 Privilege escalation in grav-plugin-api
A non-super user with write permissions can escalate to super-admin and disable 2FA due to missing access checks in the Grav API plugin.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-62666?
CVE-2026-62666 is a high-severity vulnerability in getgrav grav-plugin-api, published on 19 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Grav API Plugin is a RESTful API for Grav CMS that provides full headless access to your site's content. Prior to 1.0.6, Grav API plugin UsersController::createApiKey(), generate2fa(), and disable2fa() omit the accessGrantsSuper() target check used by sibling user mutation endpoints. A non-super account with api.users.write can mint an API key bound to an access.api.super target through requireApiKeyPermission(), obtain the target's full privileges because key scopes are not enforced, and create persistent super-administrator access; the same missing check also permits rotating or disabling the target's two-factor authentication. This issue is fixed in version 1.0.6.
Which versions are affected by CVE-2026-62666?
How do I fix CVE-2026-62666?
No fix has been published for CVE-2026-62666 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-62666 being exploited?
There is no known exploitation of CVE-2026-62666 in the wild and no public exploit code.