CVE-2026-45072
Published:July 14, 2026
Updated:July 21, 2026
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.
Affected Packages
https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v7.2.9 <v7.4.12Fix Suggestion:
Update to version v7.4.12https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v6.4.24 <v6.4.40Fix Suggestion:
Update to version v6.4.40https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v8.0.0 <v8.0.12Fix Suggestion:
Update to version v8.0.12symfony/web-profiler-bundle (PHP):
Affected version(s) >=v8.0.0 <v8.0.12Fix Suggestion:
Update to version v8.0.12symfony/symfony (PHP):
Affected version(s) >=v8.0.0 <v8.0.12Fix Suggestion:
Update to version v8.0.12symfony/twig-bridge (PHP):
Affected version(s) >=v6.4.24 <v6.4.40Fix Suggestion:
Update to version v6.4.40symfony/symfony (PHP):
Affected version(s) >=v7.2.9 <v7.4.12Fix Suggestion:
Update to version v7.4.12symfony/symfony (PHP):
Affected version(s) >=v6.4.24 <v6.4.40Fix Suggestion:
Update to version v6.4.40symfony/web-profiler-bundle (PHP):
Affected version(s) >=v7.2.9 <v7.4.12Fix Suggestion:
Update to version v7.4.12Related Resources (10)
Do you need more information?
Contact UsCVSS v4
Base Score:
2
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
LOW
User Interaction
ACTIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
Exploit Maturity
UNREPORTED
CVSS v3
Base Score:
5.4
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
EPSS
Base Score:
0.23