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.0: 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/E:U/U:Clear
CVE-ID: CVE-2026-45072
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: SensioLabs
Affected software:
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.


How to mitigate CVE-2026-45072

Install security update from vendor's website.

Sources