CVE-2026-86197 PUBLISHED

Grav before 2.0.20 Cross-Site Scripting via Assets Sandbox

Assigner: VulnCheck
Reserved: 05.09.2026 Published: 05.09.2026 Updated: 05.09.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
CVSS Score: 5.1

Product Status

Vendor getgrav
Product grav
Versions Default: unaffected
  • affected from 0 to 2.0.20 (excl.)
  • Version 2.0.20 is unaffected

Credits

  • skeletonsec reporter

References

Problem Types

  • Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') CWE