CVE-2026-62666: CWE-639: Authorization Bypass Through User-Controlled Key in getgrav grav-plugin-api
Description
A vulnerability in Grav API Plugin prior to version 1.0.6 allows a non-super user with api.users.write permission to create an API key with super-administrator privileges. This occurs because certain user mutation endpoints omit a critical access check, enabling unauthorized privilege escalation and manipulation of two-factor authentication settings. The issue is fixed in version 1.0.6.
CVSS v3.1
Score 8.8high
Affected software
getgrav
grav-plugin-api
pkg:github/getgrav/grav-plugin-apiRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Grav API Plugin versions before 1.0.6 contain an authorization bypass vulnerability (CWE-639) in the UsersController methods createApiKey(), generate2fa(), and disable2fa(). These methods omit the accessGrantsSuper() target check used by other user mutation endpoints. Consequently, a non-super user with api.users.write permission can mint an API key bound to an access.api.super target, gaining full super-administrator privileges because key scopes are not enforced. This also allows unauthorized rotation or disabling of the target's two-factor authentication. The vulnerability is resolved in version 1.0.6.
Potential Impact
An attacker with api.users.write permission but without super-administrator rights can escalate privileges to full super-administrator level by creating an API key with elevated scopes. This leads to complete compromise of the Grav CMS instance, including the ability to bypass two-factor authentication controls. The vulnerability has a high CVSS score of 8.8, indicating critical confidentiality, integrity, and availability impacts.
Mitigation Recommendations
Upgrade the Grav API Plugin to version 1.0.6 or later, where this authorization bypass vulnerability is fixed. No other mitigation is required as the issue is resolved in the official patch.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-14T20:22:04.394Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a85d17aacd9273b4948b46f
Added to database: 08/19/2026, 15:53:30 UTC
Last enriched: 09/11/2026, 08:02:21 UTC
Last updated: 10/04/2026, 10:02:28 UTC
Views: 81
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.