Description
The getgrav/grav-plugin-api plugin before 1.0.13 fails to validate that the scopes of a newly created API key are a subset of the caller's scopes in createApiKey. The self-target path of requireApiKeyPermission() requires only the baseline api.access scope, and the new key's scopes are read directly from the request body with no subset check. An attacker holding a minimal-scope API key on a super account can submit an empty scopes array to mint an unscoped, full-access super key, bypassing scope restrictions (and enabling further chains such as configuration write to RCE).
Severity (CVSS)
| Base score | 9.3 |
|---|---|
| Severity | Critical |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-266 — Incorrect Privilege Assignment
Affected products
| Vendor | Product | Versions |
|---|---|---|
| getgrav | grav | 0 to <1.0.13; 1.0.13 |
References
- https://github.com/getgrav/grav/security/advisories/GHSA-95v9-4fcj-96gh (vendor-advisory)
- https://www.vulncheck.com/advisories/grav-before-scope-bypass-via-createapikey (third-party-advisory)
Generated from the official CVE List on 15 Aug 2026 07:05 UTC.