{"id":"CVE-2026-45072","aliases":["GHSA-hmr5-2xcr-v8pp"],"url":"https://o3.security/vulnerability/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 <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.","published":"2026-07-14T18:11:07.748Z","modified":"2026-08-12T03:51:28.284058978Z","cvss":null,"epss":{"score":0.00232,"percentile":0.14328,"asOf":"2026-08-16"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"6.4.40"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"7.4.12"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"8.0.12"},{"ecosystem":"Packagist","name":"symfony/twig-bridge","fixedVersion":"6.4.40"},{"ecosystem":"Packagist","name":"symfony/web-profiler-bundle","fixedVersion":"7.4.12"},{"ecosystem":"Packagist","name":"symfony/web-profiler-bundle","fixedVersion":"8.0.12"}],"fix":{"url":"https://github.com/symfony/symfony/commit/863aa81c61166f1aa74b7732df316f76113acbdb","label":"symfony/symfony@863aa81"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:28.284058978Z"}}