Stored Cross-Site Scripting Vulnerability in Grav CMS Form Plugin
CVE-2026-42842
5.4MEDIUM
What is CVE-2026-42842?
The Grav CMS Form plugin has a vulnerability in its select field template that allows editor-level users to exploit a Stored Cross-Site Scripting flaw. By utilizing this vulnerability, an attacker can inject arbitrary JavaScript into the admin panel, which executes within the context of any administrator's browser session. This issue arises due to the improper use of the Twig |raw filter for rendering taxonomy tag and category values, thus bypassing global autoescape protections. This vulnerability has been addressed in version 9.1.0.
Affected Version(s)
grav < 2.0.0-beta.2
grav-plugin-form < 9.1.0
