CVE-2026-61453
published medium CVSS 4.0 · 5.1Grav before 2.0.1 XSS via Twig String Concatenation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| getgrav | — | grav0 to < 2.0.1 (affected · semver) · 2.0.1 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
Grav v2.0.0 contains a cross-site scripting vulnerability (fixed in 2.0.1). The XSS blueprint validator (Security::detectXss()) runs on raw page content before Twig processing. When Twig content processing is enabled (twig_content.process_enabled: true), an attacker with page-write API permission can use Twig's string concatenation operator (~) to dynamically construct event handler names, dangerous tag names, or dangerous protocols at render time (e.g. {% set x = "on" ~ "error" %}). The validator sees only the harmless Twig expression and allows the content, but after Twig rendering the output (rendered via {{ page.content|raw }}) contains an active payload such as <img src=1 onerror=alert(1)>, executing arbitrary JavaScript in visitors' browsers.
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:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.1 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A: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.1 (affected · semver)2.0.1 (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-2c4f-86xc-cr74) https://github.com/getgrav/grav/security/advisories/GHSA-2c4f-86xc-cr74
- VulnCheck Advisory: Grav before 2.0.1 XSS via Twig String Concatenation https://www.vulncheck.com/advisories/grav-before-xss-via-twig-string-concatenation
Provider assertions
2VulnCheck · cna
Grav before 2.0.1 XSS via Twig String Concatenation
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 91132afebc42e2ea79281f70a3050ee9141f929e3cda1815df7357bb377079f7
- Ingested
- 09 Oct 2026, 16:30:28 UTC
- Source record
- Official CVE record