{"id":"CVE-2026-45072","published":"2026-07-14T18:11:07Z","modified":"2026-07-15T13:26:50Z","title":"Symfony: Stored XSS in WebProfiler CodeExtension::fileExcerpt() — Unescaped Non-PHP File Rendering","vendor":"symfony","product":"symfony","tier":"tail","description":{"text":"Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.4.24 until 6.4.40, 7.4.12, and 8.0.12, the development profiler file_excerpt Twig filter escapes PHP files through highlight_string() but interpolates lines from non-PHP files directly into <code> elements, allowing stored XSS against a developer who opens an attacker-written file such as var/log/dev.log in the profiler. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12.","provenance":"source","from":"CVE.org"},"cvss":{"score":2,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00305,"percentile":0.23882,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-hmr5-2xcr-v8pp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/symfony/symfony/commit/863aa81c61166f1aa74b7732df316f76113acbdb","tags":["x_refsource_MISC"]},{"url":"https://github.com/symfony/symfony/releases/tag/v6.4.40","tags":["x_refsource_MISC"]},{"url":"https://github.com/symfony/symfony/releases/tag/v7.4.12","tags":["x_refsource_MISC"]},{"url":"https://github.com/symfony/symfony/releases/tag/v8.0.12","tags":["x_refsource_MISC"]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":4.78},{"name":"CVSS severity","points":1.4}]},"vendorSlug":"symfony","affectedVersions":[{"vendor":"symfony","product":"symfony","versions":[">= 6.4.24, < 6.4.40",">= 7.2.9, < 7.4.12",">= 8.0.0-BETA1, < 8.0.12"]},{"vendor":"symfony","product":"twig-bridge","versions":[">= 6.4.24, < 6.4.40"]},{"vendor":"symfony","product":"web-profiler-bundle","versions":[">= 7.2.9, < 7.4.12",">= 8.0.0-BETA1, < 8.0.12"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-15T13:26:39.904627Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"symfony/symfony","vulnerableRanges":[">=6.4.24, <6.4.40",">=7.2.9, <7.4.12",">=8.0.0, <8.0.12"],"patched":["6.4.40","7.4.12","8.0.12"],"from":["GHSA-hmr5-2xcr-v8pp"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/twig-bridge","vulnerableRanges":[">=6.4.24, <6.4.40"],"patched":["6.4.40"],"from":["GHSA-hmr5-2xcr-v8pp"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/web-profiler-bundle","vulnerableRanges":[">=7.2.9, <7.4.12",">=8.0.0, <8.0.12"],"patched":["7.4.12","8.0.12"],"from":["GHSA-hmr5-2xcr-v8pp"],"provenance":"source"}],"summary":{"text":"The Symfony WebProfiler's CodeExtension::fileExcerpt() function, used by the development profiler's file_excerpt Twig filter, fails to escape lines from non-PHP files, which are inserted directly into <code> elements, so attacker-controlled content is rendered as markup. An attacker who can write to a file such as var/log/dev.log needs low privileges and must get a developer to open that file in the profiler, which requires user interaction, and the resulting script then runs in that developer's browser.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:23Z"},"euvd":{"id":"EUVD-2026-44366","exploited":false,"provenance":"source"}}