Skip to main content
VulnerabilityPublished Updated

CVE-2026-86197: getgrav grav · Cross-site Scripting

Affects getgrav gravSource CVE Database V5

0
Compare

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

CVSS 4.0 base score
5.1Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Sep 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
getgravgravAffected
  • <2.0.20
Fixed in
  • 2.0.20
Packagistgetgrav/gravpkg:composer/getgrav/gravOther threatsAffected
  • <2.0.20
Fixed in
  • 2.0.20

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.

References

Community reviews

Loading reviews…