CVE-2026-86197: getgrav grav · Cross-site Scripting
Affects getgrav gravSource CVE Database V5
Not known to be exploited · CVSS 5.1 Medium : upgrade to 2.0.20 when convenient.
Data as of 4 Dec 2026, 18:37 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 18% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.0.20
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 5 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Dec 2026.
What to do
Upgrade grav and getgrav/grav to 2.0.20.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| getgravgrav | Affected
| Fixed in
|
Packagistgetgrav/gravpkg:composer/getgrav/gravOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Grav version 2.0.20. Users should upgrade to version 2.0.20 or later to remediate this vulnerability. No other mitigations are specified in the advisory.
Description
Grav versions before 2.0.20 have a cross-site scripting (XSS) vulnerability in the Twig sandbox policy related to the addJs and addCss methods. This flaw allows page editors to inject arbitrary scripts via malicious assets or attributes, which are rendered unescaped in the document head and executed for all visitors, including administrators.