CVE-2026-45072
Published:May 31, 2026
Updated:June 13, 2026
Description Symfony's profiler, a development only debug UI, renders source-code excerpts on several pages using Twig's custom "file_excerpt" filter. This filter renders PHP files via "highlight_string()" (which escapes HTML), but renders non-PHP files by splitting on "\n" and interpolating each line directly into "<code>{$line}</code>" with no escaping. An attacker who can write arbitrary bytes into any file under the project root (including e.g. "var/log/dev.log"), achieves stored XSS against any developer who later opens that file in the profiler. Resolution The "file_excerpt" filter now properly escapes each line of non-PHP files using "htmlspecialchars()" before concatenating them. The patch for this issue is available "here" (https://github.com/symfony/symfony/commit/863aa81c61166f1aa74b7732df316f76113acbdb) for branch 6.4. Credits Symfony would like to thank Claude Mythos Preview (via Project Glasswing) for reporting the issue and providing the fix.
Affected Packages
https://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.12https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v7.2.9 <v7.4.12Fix Suggestion:
Update to version v7.4.12symfony/symfony (PHP):
Affected version(s) >=v8.0.0 <v8.0.12Fix Suggestion:
Update to version v8.0.12symfony/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.12symfony/web-profiler-bundle (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.40Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
1.2
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
PASSIVE
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.06