CVE-2026-42612 Details
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.
A stored Cross-Site Scripting (XSS) vulnerability has been identified in Grav versions prior to 2.0.0-beta.2. This issue allows publisher-level accounts to execute arbitrary JavaScript. The vulnerability arises from a blacklist bypass in the 'detectXss()' function, which fails to properly handle unquoted HTML event attributes. As a result, malicious scripts can be injected and executed when the content is viewed.
Users can update to Grav version 2.0.0-beta.2 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/getgrav/grav/security/advisories/GHSA-9695-8fr9-hw5q | CISA-ADP | ExploitPatchVendor Advisory |
| https://github.com/getgrav/grav/commit/5a12f9be8314682c8713e569e330f11805d0a663 | [email protected] | Patch |
| https://github.com/getgrav/grav/security/advisories/GHSA-9695-8fr9-hw5q | [email protected] | ExploitPatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| getgrav grav | <= 1.8.0 2.0.0 beta1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 12, 2026 | Initial Analysis | [email protected] |
| May 11, 2026 | CVE Modified | CISA-ADP |
| May 11, 2026 | New CVE Received | [email protected] |