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 trend (30 days)EPSS over the last 30 days for CVE-2026-42612: held from 0.002 to 0.003.

EPSS over last 30 days · oldest: 0.002 · newest: 0.003 · change: +0.000

Affected products

Weakness classification (CWE)

References

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.