Cross-site scripting in Symfony - CVE-2026-45072

 

Cross-site scripting in Symfony - CVE-2026-45072

Published: May 21, 2026


Vulnerability identifier: #VU132068
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2026-45072
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

Symfony
Debian Linux
symfony (Debian package)

How to mitigate CVE-2026-45072

Install security update from vendor's website.

Symfony - addressed in versions 6.4.40, 7.4.12, 8.0.12
symfony (Debian package) - update to 6.4.41+dfsg-0+deb13u1

External References

Related Security Bulletins