CVE-2026-42612
Description
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.
Severity
HIGH
CVSS v3
8.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N · source cna
Exploit chance (EPSS)
0.238%
chance of exploitation in the next 30 days
higher than 14.9% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-05-11 |
Timeline
- 2026-05-05GitHub advisory published (GHSA-9695-8fr9-hw5q)6 days before publication
- 2026-05-11Published by the CNA15:22 UTC
- 2026-05-11CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-9695-8fr9-hw5q, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Packagist getgrav/grav | before 2.0.0-beta.2 | 2.0.0-beta.2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| getgrav grav | through 1.8.0no fix listed2.0.0no fix listed | not listednot listed |
References
- https://github.com/getgrav/grav/commit/5a12f9be8314682c8713e569e330f11805d0a663
- https://github.com/getgrav/grav/security/advisories/GHSA-9695-8fr9-hw5q
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-42612'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-42612'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-42612'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-42612'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).