CVE-2026-86197
published medium CVSS 4.0 · 5.1Grav before 2.0.20 Cross-Site Scripting via Assets Sandbox
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| getgrav | — | grav0 to < 2.0.20 (affected · semver) · 2.0.20 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| getgrav | grav | 0 to < 2.0.20 (affected · semver)2.0.20 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
2- GitHub Security Advisory (GHSA-8hgv-xc77-jmcr) https://github.com/getgrav/grav/security/advisories/GHSA-8hgv-xc77-jmcr
- VulnCheck Advisory: Grav before 2.0.20 Cross-Site Scripting via Assets Sandbox https://www.vulncheck.com/advisories/grav-before-2.0.20-cross-site-scripting-via-assets-sandbox
Provider assertions
2VulnCheck · cna
Grav before 2.0.20 Cross-Site Scripting via Assets Sandbox
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9801c5e67ec89d7edb3b670dfed39309c09f59c34878aa06978b81ac64643561
- Ingested
- 09 Oct 2026, 16:39:26 UTC
- Source record
- Official CVE record