CVE-2026-86197
Grav before 2.0.20 contains a cross-site scripting vulnerability in the Twig sandbox policy that allowlists addJs and addCss methods on Grav\Common\Assets without proper output escaping. Page editors can inject arbitrary script by registering malicious assets or injecting attributes, which are rendered unescaped into document head tags and executed for all visitors including administrators.
- Published Sep 5, 2026
- CVSS 5.1 medium
- 0.4% chance of exploitation in the next 30 days (EPSS)
- A fix is available