CVE-2026-62387 Grav < 1.0.0-rc.16 CORS Misconfiguration via API Plugin

High 7.1 Published Updated

Attackers with valid tokens can perform cross-origin read and write operations due to insecure default CORS settings in the Grav API plugin.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-62387?

CVE-2026-62387 is a high-severity vulnerability in getgrav grav, published on 17 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-942

Which versions are affected by CVE-2026-62387?

How do I fix CVE-2026-62387?

No fix has been published for CVE-2026-62387 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-62387 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-62387 exists.

Sources

Also known as GHSA-h4x5-fmw9-97f9.

Is CVE-2026-62387 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free