Cross-site scripting in Symfony - CVE-2026-45072
Published: May 21, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary script code in a developer's browser.
The vulnerability exists due to cross-site scripting in the Twig file_excerpt filter used by the Web Profiler when rendering non-PHP files. A remote user can write crafted content into a file under the project root to execute arbitrary script code in a developer's browser.
The issue affects the development-only profiler interface and is triggered when a developer later opens the crafted file in the profiler.
Affected software
Debian Linux
symfony (Debian package)
How to mitigate CVE-2026-45072
symfony (Debian package) - update to 6.4.41+dfsg-0+deb13u1