/

CVE-2026-65895

Severity:

HIGH RISK

(8.5)

Missing Authorization (CWE-862) in Grav API Plugin

CVE-2026-65895

Deferred

Vulnerability type

Category:

Missing Authorization

CWE:

CWE-862

Impact:

Abuse of security controls and credential brute forcing

Severity:

HIGH RISK

(8.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Grav API Plugin versions before 1.0.10 improperly expose write access to sensitive configuration scopes, including rate limiting and CORS settings, to overly privileged authenticated users.

When a user has the api.config.write permission, they can disable rate limiting site-wide or relax CORS policies to include attacker-controlled origins with credentials enabled, enabling brute-force and cross-origin abuse scenarios.

Affected context

This vulnerability appears in Grav installations that use the API Plugin to manage configuration, where fine-grained authorization around security-relevant settings is not enforced.

It is most relevant when:

  • The api.config.write privilege is assigned to users or API clients beyond tightly trusted administrators
  • Rate limiting and CORS policies are stored in shared configuration namespaces
  • Security-sensitive options are updated via the same API endpoints as general configuration fields

Exploit preconditions

  • Attack surface: Grav API configuration endpoints exposed via the API Plugin
  • Required access: An authenticated account or API token with api.config.write capability
  • Trigger point: Sending configuration write requests targeting rate limiting or CORS-related settings
  • Why exploitation is possible: Authorization controls do not distinguish between ordinary configuration updates and changes to security-critical scopes, allowing a broad privilege to affect protections for authentication and cross-origin requests

Why this happens

The underlying issue is a missing authorization check for security-sensitive configuration domains, aligning with CWE-862: Missing Authorization.

The API Plugin treats all configuration writes as equivalent, rather than enforcing more restrictive rules around rate limiting, authentication-related throttles, and CORS headers.

This design conflates administrative configuration management with security policy enforcement, allowing any principal granted a general configuration write role to change protections that should require an elevated and narrowly scoped privilege.

Potential impact

  • Attackers can disable or weaken rate limiting, enabling large-scale credential stuffing or brute-force login attempts.
  • CORS policies may be broadened to include attacker-controlled origins with credentials allowed, facilitating cross-origin request abuse.
  • Increased risk of session hijacking or unauthorized data access via manipulated cross-origin flows.
  • Degradation of overall security posture as core defensive controls become configurable by non-admin users.
  • Potential regulatory or compliance exposure due to weakened access control and logging protections.

General mitigation guidance

Mitigation generally involves separating and hardening authorization checks for security-critical configuration changes.

Recommended design patterns include:

  • Isolating security-related settings (rate limiting, authentication throttles, CORS) into dedicated configuration domains guarded by stricter roles.
  • Implementing granular permissions that distinguish between general configuration writes and changes to security controls.
  • Applying secure-by-default policies where CORS and rate limiting can only be relaxed through explicitly privileged workflows.
  • Limiting issuance of configuration write privileges to a minimal set of administrative accounts and service identities.
  • Introducing audit logging and approval workflows for modifications to security policies to deter and detect misuse.

How teams detect issues like this

Effective detection focuses on both code-level and operational signals:

  • Static analysis / code review: Look for configuration endpoints that apply uniform authorization checks to all keys, especially where security-related options (e.g., rate limiting, CORS, authentication settings) reside in shared namespaces.
  • Role and permission review: Inspect RBAC or permission mappings for overly broad grants such as "config write" that implicitly cover security policies.
  • Runtime monitoring: Track changes to rate limiting and CORS configurations, alerting on sudden relaxations, wildcard origins, or enabling credentials for new domains.
  • Policy enforcement: Use security controls (e.g., WAF rules, configuration policy engines) to prevent or flag insecure CORS and rate limiting configurations, even if applied by internal APIs.

Sources

SourceLink
github.comgithub.com/getgrav/grav-plugin-api/commit/f9438d4e71389b1041ac60b69b0b5714ecfa3bdd
github.comgithub.com/getgrav/grav/security/advisories/GHSA-4pqv-2qj5-38fp
vulncheck.comvulncheck.com/advisories/grav-api-plugin-before-broken-access-control

Frequently asked

questions

Any authenticated user or API client with the api.config.write privilege can exploit the issue, even if they are not intended to be full security administrators.

Yes. Exploitation typically occurs via the exposed Grav API endpoints, but the attacker must first obtain valid credentials or an API token with configuration write access.

The safest approach is to implement fine-grained authorization around security-sensitive configuration scopes, separating rate limiting and CORS updates from general configuration writes and restricting them to narrowly defined administrator roles.

Future implementations should treat security policies (rate limiting, CORS, authentication settings) as distinct from ordinary configuration, enforce least-privilege access for changing them, and include review/approval workflows and audit logging for any modification to these controls.

Find out what's already
exploitable in your codebase.