CVE-2026-72825

High

Description

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 api_key_scopes, 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.twig_sandbox allowlist (persisted to user/config/security.yaml). Widening the allowlist turns any subsequent Twig-in-content render into an SSTI/RCE sink.

SeverityHigh
CVSS7.6
Exploit probability—
ProductGetgrav Grav-plugin-api
PublishedAug 14, 2026
First seenAug 14, 2026

How to fix

Update
  • getgrav grav-plugin-api1.0.13 or later

Affected products

ProductAffected versionsFixed in
getgrav grav-plugin-apiv < 1.0.131.0.13

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.