Getgrav grav-plugin-api
Grav API Plugin: non-super api.users.write manager -> super-admin via createApiKey (incomplete fix of CVE-2026-59190); + 2FA strip of super
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.0.6
Fixed in 1.0.6
Mitigation
Upgrade grav-plugin-api to 1.0.6 or later.
References
- Vendor advisory github.com/getgrav/grav/security/advisories/GH…
- Patch github.com/getgrav/grav-plugin-api/commit/dfcc…
- Release notes github.com/getgrav/grav-plugin-api/releases/ta…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.