Vulnerability

CVE-2026-86197

mediumCVSS 4.0 5.1Published 5 Sep 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

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 products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /getgrav/grav/security/advisories/GHSA-8hgv-xc77-jmcr
  • www.vulncheck.com /advisories/grav-before-2.0.20-cross-site-scripting-via-ass…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning