{"id":"CVE-2026-61453","revision":"f4067f3190b245d9b10af8c9f36575b8","records":[{"revision":"f4067f3190b245d9b10af8c9f36575b8","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-61453","aliases":[],"title":"Grav before 2.0.1 XSS via Twig String Concatenation","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.","state":0,"publishedAt":"2026-07-15T11:25:45.83+00:00","modifiedAt":"2026-10-08T15:23:35.72+00:00","affected":[{"ecosystem":"Vendor product","name":"grav","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"getgrav\",\n                    \"product\": \"grav\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"2.0.1\"\n                        },\n                        {\n                            \"version\": \"2.0.1\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"packageURL\": \"pkg:composer/getgrav/grav\"\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":5.1,"severity":"MEDIUM"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"severity":"MEDIUM"}],"references":["https://github.com/getgrav/grav/security/advisories/GHSA-2c4f-86xc-cr74","https://www.vulncheck.com/advisories/grav-before-xss-via-twig-string-concatenation"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-61453","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-61453","identifiers":["CVE-2026-61453"]},"retained":false,"historicalAffected":[]}],"coverage":[]}