Skip to main content
EPSS 0.6%top 51%

CVE-2026-62666: CWE-639: Authorization Bypass Through User-Controlled Key in getgrav grav-plugin-api

0
High
VulnerabilityCVE-2026-62666cvecve-2026-62666cwe-639cwe-862
Published: 08/19/2026 (08/19/2026, 15:36:37 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

getgrav

grav-plugin-api

Affected versions
<1.0.6
GitHub Actionsmore threats →ai
getgrav/grav-plugin-api
pkg:github/getgrav/grav-plugin-api
Affected versions
<1.0.6

Run 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

AILast updated: 09/11/2026, 08:02:21 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses