CVE-2026-72825: Grav before 1.0.13 API-key scope cap bypass via ReportsController

Published Aug 14, 2026
·
Updated

The getgrav/grav-plugin-api plugin before 1.0.13 contains an API-key scope cap bypass in the POST /reports/twig-content/allowlist endpoint (ReportsController). The endpoint enforces requirePermission('api.config.write') followed by a bare isSuperAdmin() check instead of requireSuper(). Because isSuperAdmin() reads access.api.super directly and never consults apikeyscopes, a least-privilege API key scoped to api.config.write minted on a super account passes the gate, allowing an attacker to append attacker-chosen tokens to the security.twigsandbox allowlist (persisted to user/config/security.yaml). Widening the allowlist turns any subsequent Twig-in-content render into an SSTI/RCE sink.

Affected Software

1 affected component
getgrav/grav-plugin-api<1.0.13

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade getgrav/grav-plugin-api to a version that resolves this vulnerability.

    Fixed in 1.0.13
  2. Configuration

    Review user/config/security.yaml and remove any attacker-added entries to the security.twig_sandbox allowlist that were injected via the POST /reports/twig-content/allowlist endpoint.

    Grav user/config/security.yaml (security.twig_sandbox allowlist) = remove attacker-chosen tokens appended to the allowlist

Event History

Aug 14, 2026
CVE Published
via MITRE·11:35 AM
Data Sourced
via MITRE·11:35 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-72825?

The severity of CVE-2026-72825 is rated high with a score of 7.6.

2

How do I fix CVE-2026-72825?

To fix CVE-2026-72825, upgrade the getgrav/grav-plugin-api to version 1.0.13 or later.

3

What systems are affected by CVE-2026-72825?

CVE-2026-72825 affects versions of the getgrav/grav-plugin-api prior to 1.0.13.

4

What type of vulnerability is CVE-2026-72825?

CVE-2026-72825 is an API-key scope cap bypass vulnerability.

5

What can attackers do with CVE-2026-72825?

Attackers exploiting CVE-2026-72825 may gain unauthorized access to API configurations due to insufficient permission checks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203