Back to list

Grav Vulnerable to Publisher-Level Stored XSS via Unquoted Event Attributes — CVE-2026-42612

GitHub · GitHub · CVE-2026-42612

ID
CVE-2026-42612
Date
Updated
Activity
Source
GitHub
Vendor
GitHub
Threat
high
CVSS
8.5
EPSS
0.00032

Summary

### Summary 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. ### Details The `detectXss()` function relies on a blacklist pattern to filter malicious attributes. The specific regex pattern used to match `on*` events…

Product

composer: getgrav/grav

What to do

General, cautious steps (verify details in the official source):

  • Prioritize patching or mitigation immediately (treat as actively risky).
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories