{"id":"CVE-2026-61453","published":"2026-07-15T11:25:45Z","modified":"2026-10-08T15:23:35Z","title":"Grav before 2.0.1 XSS via Twig String Concatenation","vendor":"getgrav","product":"grav","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00263,"percentile":0.11126,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-2c4f-86xc-cr74","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/grav-before-xss-via-twig-string-concatenation","tags":["third-party-advisory"]}],"priority":{"score":6.5,"factors":[{"name":"EPSS percentile","points":2.23},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"grav","versions":["< 2.0.1"]}],"fixedVersions":[{"vendor":"getgrav","product":"grav","versions":["2.0.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-15T17:58:40.076112Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"getgrav/grav","vulnerableRanges":[">=2.0.0, <2.0.1"],"patched":["2.0.1"],"from":["GHSA-2c4f-86xc-cr74"],"provenance":"source"}],"summary":{"text":"Grav v2.0.0's XSS blueprint validator (Security::detectXss()) checks raw page content before Twig processing, so when Twig content processing is enabled, an attacker can use Twig's string concatenation operator to build event handler names, dangerous tags, or protocols that pass validation but render as an active payload in the page output. Exploitation requires an attacker with page-write API permission and the twig_content.process_enabled setting turned on, and it requires a visitor to view the affected page, which then executes arbitrary JavaScript in that visitor's browser.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:17:45Z"},"euvd":{"id":"EUVD-2026-44650","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-55890","published":"2026-07-10","fixed":"2.0.0-rc.9","kev":false},{"cve":"CVE-2026-58657","published":"2026-07-08","fixed":"2.0.0","kev":false},{"cve":"CVE-2026-59193","published":"2026-07-10","fixed":"2.0.0","kev":false,"link":{"from":"CVE-2026-59193","to":"CVE-2026-61453","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:getgrav/grav","fromFixed":"2.0.0","toFixed":"2.0.1","daysApart":5}]}},{"cve":"CVE-2026-61453","published":"2026-07-15","fixed":"2.0.1","kev":false},{"cve":"CVE-2026-61690","published":"2026-08-19","fixed":"2.0.1","kev":false},{"cve":"CVE-2026-61449","published":"2026-07-15","fixed":"2.0.2","kev":false,"link":{"from":"CVE-2026-61453","to":"CVE-2026-61449","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:getgrav/grav","fromFixed":"2.0.1","toFixed":"2.0.2","daysApart":0}]}},{"cve":"CVE-2026-61842","published":"2026-08-19","fixed":"2.0.2","kev":false}],"package":"Packagist:getgrav/grav"}}