---
id: CVE-2026-72826
title: >-
  The getgrav/grav-plugin-api plugin before 1.0.13 fails to validate that the
  scopes of a newly created API key are a subset of the caller's scopes in
  createApiKey
summary: >-
  The getgrav/grav-plugin-api plugin before 1.0.13 fails to validate that the
  scopes of a newly created API key are a subset of the caller's scopes in
  createApiKey. The self-target path of requireApiKeyPermission() requires only
  the baseli…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-266
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-72826'
references:
  - url: 'https://github.com/getgrav/grav/security/advisories/GHSA-95v9-4fcj-96gh'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/grav-before-scope-bypass-via-createapikey
    label: disclosure@vulncheck.com
  - url: 'https://github.com/getgrav/grav/security/advisories/GHSA-95v9-4fcj-96gh'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00469
epssPercentile: 0.38
ingestedAt: '2026-09-08T21:11:12.278Z'
---

## Overview

The getgrav/grav-plugin-api plugin before 1.0.13 fails to validate that the scopes of a newly created API key are a subset of the caller's scopes in createApiKey. The self-target path of requireApiKeyPermission() requires only the baseline api.access scope, and the new key's scopes are read directly from the request body with no subset check. An attacker holding a minimal-scope API key on a super account can submit an empty scopes array to mint an unscoped, full-access super key, bypassing scope restrictions (and enabling further chains such as configuration write to RCE).

## Remediation

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