# CVE-2026-42842: grav-plugin-form: XSS via Taxonomy Field Values in Admin Panel

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/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.18%, higher than 8% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-05T21:24:45.000Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: GHSA-c2q3-p4jr-c55f
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- getgrav grav: < 2.0.0-beta.2
- getgrav grav-plugin-form: < 9.1.0
- getgrav/grav (Packagist): before 2.0.0-beta.2

## Every score

- GitHub_M: 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`
- GitHub: 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-c2q3-p4jr-c55f> (exploit, web)
- <https://github.com/getgrav/grav-plugin-form/commit/6bffb4c98be468a155d1656544ec45bb4a443957> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42842> (advisory)
- <https://github.com/getgrav/grav/commit/5a12f9be8314682c8713e569e330f11805d0a663> (web)
- <https://github.com/getgrav/grav> (package)

## Sources

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

---

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