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.
CVE-2026-86197
This medium-severity CVE scores 5.1 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.3%, top 82% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 5.1
- EG Score
- 5.1(medium)
- EG Risk
- 23(Track)EG Risk 23/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity51% × 45%Exploitation0% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 0%
- EPSS %ILE
- 18%
- KEV
- Not listed
Published
September 5, 2026
Last Modified
September 10, 2026
Advisory Details (2)
Auto-updated Sep 5, 2026Grav before 2.0.20 Cross-Site Scripting via Assets Sandbox | Advisories | VulnCheck
https://www.vulncheck.com/advisories/grav-before-2.0.20-cross-site-scripting-via-assets-sandboxPage editors can inject arbitrary script into rendered pages via the Twig sandbox's assets.addJs/addCss allowlist, escalating to super-admin · Advisory · getgrav/grav · GitHub
https://github.com/getgrav/grav/security/advisories/GHSA-8hgv-xc77-jmcrVendor Advisories for CVE-2026-86197(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
Packagist(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| getgrav/grav | 0.8.0 ... 2.0.9 (353 versions) | 2.0.20 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 19× in last 7d / 40× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-09-18 21:22 UTCEG score recompute
- 2026-09-18 21:22 UTCGHSA enrichment
- 2026-09-18 19:28 UTCEPSS rescore
- 2026-09-17 20:22 UTCEG score recompute
- 2026-09-17 20:22 UTCGHSA enrichment
- 2026-09-17 19:32 UTCEPSS rescore
- 2026-09-16 18:20 UTCEG score recompute
- 2026-09-16 18:20 UTCGHSA enrichment
- 2026-09-16 14:09 UTCEPSS rescore
- 2026-09-16 05:15 UTCEPSS rescore
- 2026-09-15 17:15 UTCEG score recompute
- 2026-09-15 17:15 UTCGHSA enrichment
- 2026-09-15 03:12 UTCEPSS rescore
- 2026-09-15 03:12 UTCEPSS rescore
- 2026-09-14 17:05 UTCGHSA enrichment
- 2026-09-13 16:55 UTCEG score recompute
- 2026-09-13 16:55 UTCGHSA enrichment
- 2026-09-12 16:45 UTCEG score recompute
- 2026-09-12 16:45 UTCGHSA enrichment
- 2026-09-11 16:35 UTCEG score recompute
- 2026-09-11 16:35 UTCGHSA enrichment
- 2026-09-11 14:53 UTCEPSS rescore
- 2026-09-11 14:53 UTCEPSS rescore
- 2026-09-10 16:25 UTCEG score recompute
- 2026-09-10 16:25 UTCGHSA enrichment
Show 15 moreShow fewer
- 2026-09-10 15:27 UTCEG score recompute
- 2026-09-10 15:27 UTCGHSA enrichment
- 2026-09-09 23:20 UTCEG score recompute
- 2026-09-09 23:20 UTCGHSA enrichment
- 2026-09-08 22:01 UTCEPSS rescore
- 2026-09-08 20:13 UTCGHSA enrichment
- 2026-09-08 16:16 UTCEG score recompute
- 2026-09-08 16:16 UTCGHSA enrichment
- 2026-09-07 14:12 UTCEG score recompute
- 2026-09-07 14:12 UTCGHSA enrichment
- 2026-09-06 13:48 UTCEPSS rescore
- 2026-09-06 13:32 UTCGHSA enrichment
- 2026-09-05 13:22 UTCEG score recompute
- 2026-09-05 12:34 UTCEG score recompute
- 2026-09-05 12:32 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-86197?
When was CVE-2026-86197 disclosed?
Is CVE-2026-86197 actively exploited?
What is the CVSS score of CVE-2026-86197?
How do I remediate CVE-2026-86197?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-86197
Is Your Infrastructure Affected by CVE-2026-86197?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.