Cross-site scripting in Symfony - CVE-2026-45072
Published: May 21, 2026
Symfony
Detailed vulnerability description
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.