# CVE-2026-61453: Grav before 2.0.1 XSS via Twig String Concatenation

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-15T11:25:45.830Z
- Modified: 2026-10-08T16:17:25.220Z
- Also known as: GHSA-2c4f-86xc-cr74
- Weaknesses: CWE-79, CWE-184, CWE-1336
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- getgrav grav: before 2.0.1 (not affected: 2.0.1)
- getgrav/grav (Packagist): from 2.0.0 before 2.0.1

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `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`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-2c4f-86xc-cr74> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/grav-before-xss-via-twig-string-concatenation> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-61453> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-61710> (advisory)
- <https://github.com/getgrav/grav> (package)

## Sources

- CVE List: [CVE-2026-61453](https://www.cve.org/CVERecord?id=CVE-2026-61453), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-2c4f-86xc-cr74](https://github.com/advisories/GHSA-2c4f-86xc-cr74), CC-BY-4.0, modified 2026-09-16
- NVD: [CVE-2026-61453](https://nvd.nist.gov/vuln/detail/CVE-2026-61453), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2026-61453 · Whole record: https://cve.day/CVE-2026-61453.json · Rebuilt by cve.day 2026-11-25T22:59:28.277Z
