# CVE-2026-42612: Grav: Publisher-Level Stored XSS via Unquoted Event Attributes

- Severity: High 8.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-05T21:27:15.000Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: GHSA-9695-8fr9-hw5q
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- getgrav grav: < 2.0.0-beta.2; up to 1.8.0; 2.0.0
- getgrav/grav (Packagist): before 2.0.0-beta.2

## Every score

- GitHub_M: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-9695-8fr9-hw5q> (exploit, patch, vendor-advisory, web)
- <https://github.com/getgrav/grav/commit/5a12f9be8314682c8713e569e330f11805d0a663> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42612> (advisory)
- <https://github.com/getgrav/grav> (package)

## Sources

- CVE List: [CVE-2026-42612](https://www.cve.org/CVERecord?id=CVE-2026-42612), CVE Terms of Use, modified 2026-05-11
- GitHub Advisory Database: [GHSA-9695-8fr9-hw5q](https://github.com/advisories/GHSA-9695-8fr9-hw5q), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-42612](https://nvd.nist.gov/vuln/detail/CVE-2026-42612), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42612 · Whole record: https://cve.day/CVE-2026-42612.json · Rebuilt by cve.day 2026-11-25T22:59:21.199Z
