CVE-2026-86197

published 5 Sep 2026 · updated 8 Oct 2026

Grav before 2.0.20 Cross-Site Scripting via Assets Sandbox

5.1MediumCVSS 5.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 2.0.20.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
getgrav<2.0.202.0.20

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-86197 severity on Zeptric[![CVE-2026-86197](https://zeptric.io/badge/cve/CVE-2026-86197.svg)](https://zeptric.io/cve/CVE-2026-86197)