{"id":"CVE-2026-45072","summary":"Symfony: Stored XSS in WebProfiler CodeExtension::fileExcerpt() — Unescaped Non-PHP File Rendering","details":"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 \u003ccode\u003e 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.","aliases":["GHSA-hmr5-2xcr-v8pp"],"modified":"2026-07-17T03:46:32.758625066Z","published":"2026-07-14T18:11:07.748Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45072.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-79"]},"references":[{"type":"WEB","url":"https://github.com/symfony/symfony/releases/tag/v6.4.40"},{"type":"WEB","url":"https://github.com/symfony/symfony/releases/tag/v7.4.12"},{"type":"WEB","url":"https://github.com/symfony/symfony/releases/tag/v8.0.12"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45072.json"},{"type":"ADVISORY","url":"https://github.com/symfony/symfony/security/advisories/GHSA-hmr5-2xcr-v8pp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45072"},{"type":"FIX","url":"https://github.com/symfony/symfony/commit/863aa81c61166f1aa74b7732df316f76113acbdb"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/symfony/security-http","events":[{"introduced":"bd6ce061b70071afea0a4805903b6ed3f6f64e07"},{"fixed":"816860d96c4fb7ffd7708ae0531ea6e5a1190773"},{"introduced":"972dd874c2ce65e4c58dbf59054d2bf7ad70ec54"},{"fixed":"1fc7ca636cbd2cad29b42cc13c9fd0c681c6efee"},{"introduced":"bea6dc79db4d95c34b77ec27273d812aa64d65be"},{"fixed":"d776945b2dc41c0e609c56c1ef69863ab56856ed"}],"database_specific":{"extracted_events":[{"introduced":"6.4.24"},{"fixed":"6.4.40"},{"introduced":"7.2.9"},{"fixed":"7.4.12"},{"introduced":"8.0.0"},{"fixed":"8.0.12"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*"}},{"type":"GIT","repo":"https://github.com/symfony/symfony","events":[{"introduced":"dd399b476c42d8437191e162de955a35a408d99f"},{"fixed":"95a951788e30c45356278f4e4472cbbf552d0eb9"},{"introduced":"7b46622b6666b0331960d974f2a2c5def7f233fd"},{"fixed":"275f5cbccbcc50205206f05e599c4f57009aadb8"},{"introduced":"2e913a829cfbbf9cb38b321bdff1806b44b192eb"},{"fixed":"06d3b2c9a8aeb5d8493738cc51e24f6a1215827c"},{"fixed":"863aa81c61166f1aa74b7732df316f76113acbdb"}],"database_specific":{"extracted_events":[{"introduced":"6.4.24"},{"fixed":"6.4.40"},{"introduced":"7.2.9"},{"fixed":"7.4.12"},{"introduced":"8.0.0"},{"fixed":"8.0.12"}],"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*"}}],"versions":["v6.4.39","v8.0.11","v8.0.9","v6.4.34","v8.0.8","v8.0.6","v6.4.31","v8.0.4","v8.0.3","v8.0.1","v6.4.30","v8.0.0","v6.4.26","v6.4.25","v6.4.24","v6.4.38","v8.0.10","v6.4.37","v6.4.36","v8.0.7","v6.4.35","v8.0.5","v6.4.33","v6.4.32","v8.0.2","v6.4.29","v6.4.28","v6.4.27"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45072.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}