Advisories / composer / symfony/symfony / CVE-2026-45072
Symfony Vulnerable to stored XSS in WebProfiler CodeExtension::fileExcerpt() — Unescaped Non-PHP File Rendering (CVE-2026-45072)
CVE-2026-45072 GHSA-hmr5-2xcr-v8pp Published 27 May 2026
Affects 3 packages. Each has a fixed release.
$ composer require symfony/symfony:^6.4.40 $ composer require symfony/symfony:^7.4.12 $ composer require symfony/symfony:^8.0.12 $ composer require symfony/twig-bridge:^6.4.40 $ composer require symfony/web-profiler-bundle:^7.4.12 $ composer require symfony/web-profiler-bundle:^8.0.12
Which versions are affected
| Package | Affected | Fixed in |
|---|---|---|
| symfony/symfony | ≥ 6.4.24, < 6.4.40≥ 7.2.9, < 7.4.12≥ 8.0.0, < 8.0.12 | 6.4.407.4.128.0.12 |
| symfony/twig-bridge | ≥ 6.4.24, < 6.4.40 | 6.4.40 |
| symfony/web-profiler-bundle | ≥ 7.2.9, < 7.4.12≥ 8.0.0, < 8.0.12 | 7.4.128.0.12 |
Check a site from its project folder:
composer show symfony/symfony
shows the installed version. Or paste the lock file into the lock file checker to check every package at once.
Timeline
- Advisory published, with a fix
Questions
Which version of symfony/symfony is safe from CVE-2026-45072?
8.0.12 and later. Versions affected: ≥ 6.4.24, < 6.4.40, ≥ 7.2.9, < 7.4.12, ≥ 8.0.0, < 8.0.12.
Which version of symfony/twig-bridge is safe from CVE-2026-45072?
6.4.40 and later. Versions affected: ≥ 6.4.24, < 6.4.40.
Which version of symfony/web-profiler-bundle is safe from CVE-2026-45072?
8.0.12 and later. Versions affected: ≥ 7.2.9, < 7.4.12, ≥ 8.0.0, < 8.0.12.