CVE-2026-61453: Grav - Stored XSS
- Cve: CVE-2026-61453
- Name: Grav - Stored XSS
- 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.
- Impact: Attackers with page-write API permission can execute arbitrary JavaScript in visitors' browsers, leading to session hijacking or defacement.
- Remediation: Upgrade to version 2.0.1 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: logged_in
- Requirements: Attacker needs page-write API permission
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00196
- Epss percentile: 0.09111
- Assignee: [email protected]
- Published at: 2026-07-15T12:18:20Z
- Age in days: 132
- Modified at: 2026-10-08T16:17:25Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-61453
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/getgrav/grav/security/advisories/GHSA-2c4f-86xc-cr74 | nvd | |
| https://www.vulncheck.com/advisories/grav-before-xss-via-twig-string-concatenation | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| getgrav:grav | < 2.0.1 | no | cna | /v1/products/getgrav/grav |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| getgrav/grav | package, security_advisory | yes | /v1/repositories/getgrav/grav |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 1971
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports