Skip to main content
← All vulnerabilities
CVE-2026-86197GHSA-8HGV-XC77-JMCR

Grav before 2.0.20 Cross-Site Scripting via Assets Sandbox

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.20
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • getgrav grav

    fixed in 2.0.20

  • getgrav/gravPackagist

    fixed in 2.0.20

References 2

GitHub · getgrav/grav

vulncheck.com