Cross-site scripting in Grav CMS - CVE-2026-42612

 

Cross-site scripting in Grav CMS - CVE-2026-42612

Published: May 5, 2026


Vulnerability identifier: #VU130078
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-42612
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Grav CMS
Affected software:
Grav CMS

Detailed vulnerability description

The vulnerability allows a remote user to execute arbitrary JavaScript in a victim's browser.

The vulnerability exists due to improper neutralization of input during web page generation in the detectXss() function when handling unquoted HTML event attributes in content fields. A remote user can inject crafted HTML with unquoted event handler attributes to execute arbitrary JavaScript in a victim's browser.

Any user, including administrators, who views the compromised published content can be affected.


How to mitigate CVE-2026-42612

Install security update from vendor's website.

Sources