Skip to main content
Vulnerability Database/CVE-2026-109317

CVE-2026-109317: Grav API Plugin Privilege Escalation

CVE-2026-109317 is a privilege escalation flaw in Grav API Plugin before 1.0.36 that lets delegated user managers gain super-admin access. This post explains its technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-109317 Overview

CVE-2026-109317 is a privilege escalation vulnerability in the Grav grav-plugin-api plugin before version 1.0.36. Delegated user managers with the api.users.write permission can obtain super-admin access by storing positive scalar admin or api parent grants. The inheriting permission resolver interprets these scalar grants as satisfying requireSuper checks, which gates super-admin-only API endpoints. The flaw is tracked under CWE-269: Improper Privilege Management.

Critical Impact

Authenticated users with user-management rights can elevate to super-admin and invoke super-only API endpoints across Grav installations running the vulnerable plugin.

Affected Products

  • Grav grav-plugin-api versions prior to 1.0.36
  • Grav CMS deployments that enable the API plugin for delegated administration
  • Installations granting api.users.write to non-super accounts or invitations

Discovery Timeline

  • 2026-10-12 - CVE-2026-109317 published to the National Vulnerability Database (NVD)
  • 2026-10-15 - Last updated in NVD database

Technical Details for CVE-2026-109317

Vulnerability Analysis

The Grav API plugin exposes account access maps that describe permissions as hierarchical grants. Entries such as admin or api act as parent nodes whose children normally carry fine-grained boolean grants. The permission resolver in affected versions walks these maps and treats any positive scalar value stored at a parent node as a blanket grant for every descendant permission.

An attacker with api.users.write can edit another account, their own invitation, or a pending user record and set the parent key to a truthy scalar value. When the resolver later evaluates requireSuper, it finds a matching positive grant on the admin or api branch and authorizes the caller as a super-admin. This bypasses the intended role boundary between delegated user managers and platform operators.

Root Cause

The root cause is improper privilege management in the inheritance logic. The resolver conflates presence of a positive scalar at an intermediate node with explicit assignment of every child permission, including the super-admin gate. User-mutation endpoints perform no server-side validation that submitted access maps conform to the expected nested object structure.

Attack Vector

Exploitation is network-reachable and requires only an authenticated session with api.users.write. The attacker issues an API request to modify an account, invitation, or access map and injects a scalar grant on admin or api. On the next authorization check, the resolver grants super-admin, unlocking endpoints that read or alter sensitive configuration, plugins, and user records. See the Grav GitHub Security Advisory GHSA-m2rq-76vx-vv4j and the VulnCheck Privilege Escalation Advisory for technical details.

Detection Methods for CVE-2026-109317

Indicators of Compromise

  • Account records or invitations whose access maps contain scalar values at admin or api keys instead of nested permission objects.
  • API calls to user-management endpoints originating from accounts that previously held only api.users.write.
  • Unexpected successful invocations of super-admin-only API endpoints by non-super accounts.
  • New or modified accounts gaining broad access shortly after an edit by a delegated user manager.

Detection Strategies

  • Audit stored user and invitation records for admin: true, api: true, or similar scalar grants at parent nodes.
  • Correlate HTTP request logs for /api/users write operations with subsequent calls to endpoints protected by requireSuper.
  • Alert on privilege transitions where an account resolves as super-admin without an explicit super-admin assignment in change-management records.

Monitoring Recommendations

  • Forward Grav application and web server logs to a centralized analytics platform for retrospective hunting.
  • Monitor the Grav user/accounts directory and database for unauthorized modifications to access maps.
  • Track administrator additions and permission changes against an approved change ticket queue.

How to Mitigate CVE-2026-109317

Immediate Actions Required

  • Upgrade grav-plugin-api to version 1.0.36 or later on every Grav instance.
  • Review all existing accounts and invitations for scalar grants on admin or api and replace them with explicit nested permission objects.
  • Revoke api.users.write from accounts that do not require delegated user management.
  • Rotate API tokens and session credentials for any account suspected of exploiting the resolver flaw.

Patch Information

The maintainers fixed the resolver in grav-plugin-api1.0.36 by rejecting scalar values at parent permission nodes and enforcing that requireSuper matches an explicit super-admin grant. Patch details are available in the Grav GitHub Security Advisory GHSA-m2rq-76vx-vv4j.

Workarounds

  • Restrict network access to the Grav Admin and API endpoints using a reverse proxy or allowlist until the upgrade is applied.
  • Temporarily disable the API plugin on production sites that do not require programmatic user management.
  • Enforce manual review of any user or invitation change made by non-super accounts.
bash
# Configuration example
# Upgrade the Grav API plugin to a fixed version
bin/gpm update api
bin/gpm install api -f  # pin to >= 1.0.36 if required

# Verify the installed version
bin/gpm info api | grep -i version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.