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)
EPSS: 0.002 (4.5th percentile) — read the EPSS interpretation.
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.
Affected products
- Getgrav Grav — versions < 2.0.0-beta.2
- Getgrav Grav-plugin-form — versions < 9.1.0
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM)
- security-advisories@github.com (x_refsource_MISC)
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.