Skip to main content

Grav API Plugin CVE-2026-62387

| EUVDEUVD-2026-45087 HIGH
Permissive Cross-domain Security Policy with Untrusted Domains (CWE-942)
2026-07-17 VulnCheck GHSA-h4x5-fmw9-97f9
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain leaked valid API token
  2. Delivery
    Host malicious page with attacker JS
  3. Exploit
    Victim browser loads page
  4. Execution
    Cross-origin request sends token header
  5. Persist
    Wildcard CORS permits reading response
  6. Impact
    Exfiltrate data and perform writes

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration CORS policy restriction
Exploitation Conditions

Exploitation requires the attacker to already possess a valid API access token for the target Grav instance - obtained out-of-band via log leakage, Referer headers, browser history, or network capture - and requires the Grav API plugin to be installed at a version before 1.0.0-rc.16 with its default 'Access-Control-Allow-Origin: *' CORS configuration intact. The attack then executes when a browser loads attacker-controlled JavaScript (UI:P). Limiting factors: without a leaked token there is no impact, so any deployment that avoids token leakage or overrides the CORS header via a proxy is not exploitable; the flaw is specific to the header-based (not cookie-based) authentication model this plugin uses.

Impact

The CVSS 4.0 base score of 7.1 (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:L/VA:N) reflects high confidentiality impact with lower integrity impact and no availability impact, consistent with an information-disclosure and limited-write CORS flaw rather than direct code execution. The most important caveat is that real-world exploitation is gated on the attacker first obtaining a valid access token - the description explicitly lists leakage vectors such as logs, Referer headers, browser history, or network capture - so the vendor's PR:N understates a meaningful precondition that this analysis treats as elevated attack complexity. No EPSS score, POC, or KEV entry was provided, so there is no evidence of active or automated exploitation; this is a real but conditional risk best characterized as targeted rather than opportunistic. The Information Disclosure and CORS Misconfiguration tags and the VulnCheck advisory corroborate the confidentiality-centric framing.

Exploit ScenarioDerived

An attacker recovers a valid API access token from a leaked log file, a Referer header, or captured traffic, then hosts a malicious web page whose JavaScript issues fetch() calls to the target Grav API with that token in the Authorization or X-API-Token header. Because every response carries 'Access-Control-Allow-Origin: *', the attacker's browser-based script can read authenticated response bodies to exfiltrate sensitive content and issue write requests as the token's user. No public exploit is identified at time of analysis, and the CVSS UI:P indicates a page-load-level interaction rather than a complex lure.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 17, 2026

Cross-origin data exposure in the Grav API plugin (getgrav/grav-plugin-api) before 1.0.0-rc.16 stems from a hardcoded 'Access-Control-Allow-Origin: *' header returned on every response, including authenticated endpoints and preflight (OPTIONS) responses. Because the plugin authenticates via the Authorization and X-API-Token request headers rather than cookies, any malicious website scripting a leaked access token can read the response bodies of authenticated endpoints and perform write actions as that token's user. Reported by VulnCheck with no public exploit identified at time of analysis; not listed in CISA KEV.

RemediationAI

Vendor-released patch: upgrade the Grav API plugin to 1.0.0-rc.16 or later, which removes the default wildcard CORS policy; this is the primary and recommended fix, per advisory GHSA-93px-98wh-6fj2. If immediate upgrade is not possible, place the API behind a reverse proxy (nginx/Apache) that strips or overrides the plugin's 'Access-Control-Allow-Origin: *' header and reflects only an explicit allowlist of trusted origins, with the trade-off that legitimate cross-origin browser clients must then be enumerated and whitelisted. Additionally restrict network access to the API endpoints to trusted hosts or VPN, and rotate any access tokens that may have been exposed while tightening token handling to reduce leakage via logs and Referer headers, accepting that these controls reduce but do not eliminate exposure until the plugin is patched.

Affected VersionsENISA

grav 0 <1.0.0-rc.16

Affected Packages

euvd grav fix: 1.0.0-rc.16

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Grav is a flat-file, database-free PHP CMS, and the API plugin exposes REST-style endpoints for programmatic content and administrative operations. The root cause is CWE-942 (Permissive Cross-domain Policy with Untrusted Domains): the plugin statically emits a wildcard CORS policy instead of validating against an allowlist of trusted origins. Normally a wildcard ACAO blocks cookie-based credentialed requests, but this plugin carries credentials in the custom Authorization and X-API-Token headers that JavaScript sets explicitly, so the wildcard policy directly permits arbitrary origins to both send those headers and read the returned responses. The affected CPE is cpe:2.3:a:getgrav:grav (the API plugin component) across all versions prior to the fix.

Know when Grav gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.9 MEDIUM

Requires a separately leaked valid token (AC:H) and a browser loading attacker script (UI:R); wildcard CORS yields high-confidentiality read and limited write (I:L), no availability impact.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 17, 2026 - 02:32 EUVD
CVE Published
Jul 17, 2026 - 00:07 cve.org
HIGH 7.1

DescriptionCVE.org

The Grav API plugin (getgrav/grav-plugin-api) before 1.0.0-rc.16 shipped Access-Control-Allow-Origin: * as its default CORS configuration on all responses, including authenticated endpoints and preflight (OPTIONS) responses. Because the plugin accepts credentials via the Authorization and X-API-Token headers (set programmatically by JavaScript rather than via cookies), an attacker who obtains a valid access token (e.g., via log leakage, Referer headers, browser history, or network capture) can issue fully authenticated cross-origin requests from any malicious website to read sensitive data and perform write operations as the token's user. Fixed in 1.0.0-rc.16.

Executive ViewAI

Why It Matters

The Grav API plugin contains a high-severity cross-origin vulnerability (CVE-2026-62387, CVSS 7.1) that allows attackers with a valid API token to bypass browser-based access controls and read or modify API responses from any website. Organizations using Grav's API plugin expose authenticated endpoints to token-based cross-site attacks, risking unauthorized data access and malicious modifications to their APIs.

Business Impact: High
Compensating Controls

Disable the Grav API plugin entirely if API functionality is not required. If the plugin must remain active: implement a reverse proxy or WAF with strict Origin header validation to allow only trusted domains; restrict API tokens to minimal necessary permissions and implement short expiration windows; segregate API infrastructure from user-facing systems using network controls; enable audit logging for all API requests and monitor for anomalous cross-origin access patterns. No vendor-released patch identified at time of analysis.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Low
optional API add-on for a niche flat-file CMS
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Related Vulnerabilities in Grav API Plugin Authorization and Credential Exposure

View all 4

More in Grav

View all
CVE-2025-66294 HIGH POC
8.7 Dec 01

Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol

CVE-2025-66301 HIGH POC
8.6 Dec 01

Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their

CVE-2025-50286 HIGH POC
8.1 Aug 06

A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug

CVE-2024-34082 CRITICAL POC
9.9 May 15

Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a

CVE-2021-47812 CRITICAL POC
9.8 Jan 16

GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv

CVE-2026-65008 CRITICAL POC
9.3 Jul 21

Remote code execution in Grav CMS 2.0.4 (fixed in 2.0.7) lets an authenticated user holding the admin.pages or api.pages

CVE-2026-75827 CRITICAL POC
9.3 Aug 18

Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri

CVE-2026-75837 CRITICAL POC
9.3 Aug 18

Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm

CVE-2026-75828 CRITICAL POC
9.3 Aug 18

Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past

CVE-2025-66844 CRITICAL POC
9.1 Dec 15

Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make

CVE-2025-66299 HIGH POC
8.8 Dec 01

Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (S

CVE-2026-72819 HIGH POC
8.7 Aug 14

Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy