CVE-2026-62387

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

State
Published
Severity
7.1 High
Published
Jul 17, 2026
Updated
Jul 17, 2026
Reserved
Jul 13, 2026

Read the record on cve.org

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.

Scores

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

Weaknesses

  • CWE-942 Permissive Cross-domain Security Policy with Untrusted Domains

Affected Products

ProductVersions
gravgetgrav
  • before 1.0.0-rc.16Affected
  • 1.0.0-rc.16Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.