XSS in Getgrav Grav
CVE-2026-42842
The form plugin for Grav adds the ability to create and use forms. Prior to 9.1.0, a Stored Cross-Site Scripting (XSS) vulnerability exists in the Grav CMS Form plugin's select field template. Taxonomy tag and category values are rendered with the Twig |raw filter in the admin panel, bypassing the global autoescape protection. An editor-level user can inject arbitrary JavaScript that executes in any administrator's browser session when they view or edit any page in the admin panel. This vulnerability is fixed in 9.1.0.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.003 (16.1th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 16th percentile — 16.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.002 · newest: 0.003 · change: +0.001
Affected products
- Getgrav Grav — versions < 2.0.0-beta.2
- Getgrav Grav-Plugin-Form — versions < 9.1.0
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-42842?
- CVE-2026-42842 is a medium-severity vulnerability in Getgrav Grav, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2026-05-11.
- How severe is CVE-2026-42842?
- Medium severity. CVSS v3 base score is 5.4 out of 10.