CVE-2026-72824: Missing Authorization in getgrav grav
The Grav API plugin (getgrav/grav-plugin-api) before 1.0.13 contains an API key scope-cap bypass in PagesController::guardTwigContent(). The Twig-toggle check uses a bare isSuperAdmin() gate that does not consult api_key_scopes, so a least-privilege API key scoped only to api.pages.write and minted on a super account can enable process.twig on a page save even though admin.pages_twig is intentionally outside the api.pages scope. When security.twig_content.process_enabled=true and editor_enabled=false, this allows Twig-in-content to execute server-side, resulting in server-side template injection (SSTI) and remote code execution.
AI Analysis
Technical Summary
The Grav API plugin before 1.0.13 contains an authorization bypass vulnerability in the PagesController::guardTwigContent() method. The vulnerability arises because the Twig-toggle check uses a bare isSuperAdmin() gate without consulting api_key_scopes. Consequently, an API key with limited scope (api.pages.write) but created by a super admin can execute process.twig on page save, even though admin.pages_twig is outside the api.pages scope. If the configuration security.twig_content.process_enabled is true and editor_enabled is false, this leads to server-side template injection and remote code execution.
Potential Impact
An attacker with an API key scoped only to api.pages.write but minted on a super admin account can execute arbitrary server-side code via server-side template injection. This can lead to full remote code execution on the affected server, posing a critical security risk.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict API key issuance to trusted users and avoid enabling the security.twig_content.process_enabled setting if possible. Monitor vendor channels for updates and apply patches promptly once released.
CVE-2026-72824: Missing Authorization in getgrav grav
Description
The Grav API plugin (getgrav/grav-plugin-api) before 1.0.13 contains an API key scope-cap bypass in PagesController::guardTwigContent(). The Twig-toggle check uses a bare isSuperAdmin() gate that does not consult api_key_scopes, so a least-privilege API key scoped only to api.pages.write and minted on a super account can enable process.twig on a page save even though admin.pages_twig is intentionally outside the api.pages scope. When security.twig_content.process_enabled=true and editor_enabled=false, this allows Twig-in-content to execute server-side, resulting in server-side template injection (SSTI) and remote code execution.
CVSS v4.0
Score 9.3critical
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Grav API plugin before 1.0.13 contains an authorization bypass vulnerability in the PagesController::guardTwigContent() method. The vulnerability arises because the Twig-toggle check uses a bare isSuperAdmin() gate without consulting api_key_scopes. Consequently, an API key with limited scope (api.pages.write) but created by a super admin can execute process.twig on page save, even though admin.pages_twig is outside the api.pages scope. If the configuration security.twig_content.process_enabled is true and editor_enabled is false, this leads to server-side template injection and remote code execution.
Potential Impact
An attacker with an API key scoped only to api.pages.write but minted on a super admin account can execute arbitrary server-side code via server-side template injection. This can lead to full remote code execution on the affected server, posing a critical security risk.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict API key issuance to trusted users and avoid enabling the security.twig_content.process_enabled setting if possible. Monitor vendor channels for updates and apply patches promptly once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-10T15:12:59.508Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7f0284bf8831d539fec854
Added to database: 08/14/2026, 11:56:52 UTC
Last enriched: 08/14/2026, 12:12:42 UTC
Last updated: 08/14/2026, 22:53:12 UTC
Views: 11
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.