XSS in Getgrav Grav
CVE-2026-42612
Grav is a file-based Web platform. Prior to 2.0.0-beta.2, a stored Cross-Site Scripting (XSS) vulnerability in getgrav/grav allows publisher-level accounts to execute arbitrary JavaScript. The issue arises from a blacklist bypass in the detectXss() function when handling unquoted HTML event attributes. This vulnerability is fixed in 2.0.0-beta.2.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N.
EPSS exploit prediction
EPSS: 0.003 (17.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 18th percentile — 17.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.002 · newest: 0.003 · change: +0.000
Affected products
- Getgrav Grav — versions < 2.0.0-beta.2, 2.0.0
Weakness classification (CWE)
References
- github.com/getgrav/grav/security/advisories/GHSA-9695-8fr9-hw5q (Exploit, Patch, Vendor Advisory)
- github.com/getgrav/grav/commit/5a12f9be8314682c8713e569e330f11805d0a663 (Patch)
Frequently asked questions
- What is CVE-2026-42612?
- CVE-2026-42612 is a high-severity vulnerability in Getgrav Grav, classified under Cross-site Scripting. CVSS score: 8.5/10. Published 2026-05-11.
- How severe is CVE-2026-42612?
- High severity. CVSS v3 base score is 8.5 out of 10.