# CVE-2026-64852: Grav API Plugin privilege escalation in API key management

Source: https://junglewise.ai/threats/cve-2026-64852-grav-api-plugin-privilege-escalation-in-api-key-management  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-19. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-64852 · Severity: info · CVSS 8.8 · Published 2026-08-19

The Grav API Plugin is a headless content access layer for Grav CMS sites. A basic panel user can exploit improper authorization in the API key generation and revocation functions to create persistent credentials bound to another user's account, inheriting that user's API permissions including administrative write access. This allows a low-privilege attacker to escalate to full administrative control over the site's content and API.

Technologies: [Grav API Plugin](https://junglewise.ai/threats/technologies/api-plugin). Vendors: [Grav](https://junglewise.ai/threats/vendors/grav).

## Quick answers

**Is CVE-2026-64852 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-64852 being exploited in the wild.

**How severe is CVE-2026-64852?** Informational severity, with a CVSS score of 8.8, published 19 August 2026.

**Which products and versions are affected?** Grav API Plugin prior to 1.0.8.

**Is there a fix for CVE-2026-64852?** A patch was published on 2026-07-04: Version 1.0.8 released with security fix Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-64852 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-64852?** Check whether you run Grav API Plugin at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a privilege escalation (or authorization bypass) in user/plugins/api/api.php. The apiKeyGenerate and apiKeyRevoke admin tasks check only for admin.login permission rather than enforcing proper account ownership or account-management restrictions. An authenticated user with basic panel access can specify an arbitrary target account in the request, create an API key bound to that account, and inherit the target's permissions—including api.super or admin write access if the target is a super admin. The attack requires authentication and network access to the admin panel. The vulnerability is fixed in version 1.0.8, which restricts API key generation/revocation to account-management permission holders and prevents super admins from having keys generated by non-super admins.

## Affected products

- Grav API Plugin prior to 1.0.8

## Timeline

- 2026-08-19: disclosed
- 2026-07-04: patched: Version 1.0.8 released with security fix

## References

- [https://github.com/getgrav/grav-plugin-api/commit/ed16f0aaa9b398c6f179fb8f51e0fa53e4ed8a30](https://github.com/getgrav/grav-plugin-api/commit/ed16f0aaa9b398c6f179fb8f51e0fa53e4ed8a30)
- [https://github.com/getgrav/grav-plugin-api/releases/tag/1.0.8](https://github.com/getgrav/grav-plugin-api/releases/tag/1.0.8)

## Related threats

- [Grav API plugin session validation bypass in disabled accounts](https://junglewise.ai/threats/cve-2026-109320-the-grav-api-plugin-grav-plugin-api-before-1-0-36-contains-an)
- [Grav API Plugin password reset link spoofing via Host header](https://junglewise.ai/threats/cve-2026-86196-grav-api-plugin-password-reset-link-spoofing-via-host-header)
- [Grav API Plugin scope cap bypass in page permissions](https://junglewise.ai/threats/cve-2026-80204-grav-api-plugin-scope-cap-bypass-in-page-permissions)
- [Grav API plugin server-side request forgery in webhook delivery](https://junglewise.ai/threats/cve-2026-56708-grav-api-plugin-server-side-request-forgery-in-webhook-delivery)
- [Grav API Plugin JWT token exposure in URL query parameter](https://junglewise.ai/threats/cve-2026-63408-grav-api-plugin-jwt-token-exposure-in-url-query-parameter)
