Vulnerability 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.
Related Weaknesses (CWE)
References
- https://github.com/getgrav/grav/security/advisories/GHSA-8hgv-xc77-jmcr
- https://www.vulncheck.com/advisories/grav-before-2.0.20-cross-site-scripting-via
FAQ
What is CVE-2026-86197?
CVE-2026-86197 is a documented vulnerability. 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 ...
How severe is CVE-2026-86197?
CVSS scoring is not yet available for CVE-2026-86197. Check NVD for updates.
Is there a patch for CVE-2026-86197?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.