API-Key Scope Bypass in Grav Plugin Affects Grav by Getgrav
CVE-2026-72825
7.2HIGH
What is CVE-2026-72825?
The Grav API plugin prior to version 1.0.13 is prone to an API-key scope cap bypass vulnerability. This occurs in the POST /reports/twig-content/allowlist endpoint managed by the ReportsController. The implementation only checks for super admin status without proper handling of API-key scopes, allowing users with least-privilege API keys to execute unauthorized actions. This flaw enables attackers to inject malicious tokens into the allowlist for the security.twig_sandbox, which, when exploited, can lead to server-side template injection (SSTI) and possibly remote code execution (RCE).
Affected Version(s)
grav 0 < 1.0.13
grav 1.0.13
