CVE-2026-45072 Details
Description
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.4.24 until 6.4.40, 7.4.12, and 8.0.12, the development profiler file_excerpt Twig filter escapes PHP files through highlight_string() but interpolates lines from non-PHP files directly into <code> elements, allowing stored XSS against a developer who opens an attacker-written file such as var/log/dev.log in the profiler. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12.
A stored cross-site scripting vulnerability has been identified in the Symfony Twig Bridge's Web Profiler component. This issue affects Symfony versions 6.4.24 prior to 6.4.40, 7.2.9 prior to 7.4.12, and 8.0.12. The vulnerability arises because the 'file_excerpt' Twig filter in the Web Profiler's CodeExtension improperly handles non-PHP files. While PHP files are correctly escaped, lines from non-PHP files are interpolated directly into code elements without escaping. This flaw allows an attacker to inject malicious scripts into files that, when opened by a developer in the profiler, execute the injected scripts, leading to cross-site scripting.
Users can upgrade to Symfony versions 6.4.40, 7.4.12, or 8.0.12 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| sensiolabs symfony | >= 6.4.24, < 6.4.40 >= 7.2.9, < 7.4.12 >= 8.0.0, < 8.0.12 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 16, 2026 | Initial Analysis | [email protected] |
| Jul 15, 2026 | CVE Modified | CISA-ADP |
| Jul 14, 2026 | New CVE Received | [email protected] |