CVE-2026-86197getgrav grav
Medium 5.1
Follow: this CVE · getgrav · getgrav grav We alert you by email or Slack (account required).
- Priority
- 31
- CVSS 4.0
- 5.1
- EPSS
- —
- Auth required
- Yes
- Published
- Sep 5, 2026
- Updated
- Oct 8, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for grav.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | getgrav/grav |
< 2.0.20 |
2.0.20 |
composer require "getgrav/grav:^2.0.20" |
Per OSV / GitHub Advisories (GHSA-8hgv-xc77-jmcr). Check the version in your lockfile before upgrading.
Affected products
- getgrav · grav
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.