---
id: CVE-2026-72825
title: >-
  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)
summary: >-
  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 bar…
severity: high
cvss: 7.6
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L'
cwe:
  - CWE-862
published: '2026-08-14'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T20:32:39.347'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-72825'
references:
  - url: 'https://github.com/getgrav/grav/security/advisories/GHSA-v5ph-7v92-wqm6'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/grav-before-api-key-scope-cap-bypass-via-reportscontroller
    label: disclosure@vulncheck.com
  - url: 'https://github.com/getgrav/grav/security/advisories/GHSA-v5ph-7v92-wqm6'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00346
epssPercentile: 0.25449
ingestedAt: '2026-09-08T21:11:12.278Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
