Impact
Symfony’s WebProfiler component contains a stored Cross‑Site Scripting flaw in the file_excerpt Twig filter. The filter escapes PHP files with highlight_string() but inserts raw lines from non‑PHP files, such as log files, directly into <code> elements. When a developer opens an attacker‑crafted file (for example, a malicious var/log/dev.log) in the profiler, the unescaped content is executed as JavaScript within that developer’s browser session. This vulnerability is recognized as CWE‑79 and exists in Symfony versions 6.4.24 through 6.4.39, 7.4.0 through 7.4.11, and 8.0.0 through 8.0.11; it was fixed in releases 6.4.40, 7.4.12, and 8.0.12.
Affected Systems
The issue affects the Symfony Core framework, the Twig Bridge component, and the WebProfiler bundle. Unpatched versions include 6.4.24 through 6.4.39, 7.4.0 through 7.4.11, and 8.0.0 through 8.0.11; the problem is resolved in releases 6.4.40, 7.4.12, and 8.0.12.
Risk and Exploitability
With a CVSS score of 2, the overall severity is low, and the EPSS score of less than 1 % indicates a very low likelihood of exploitation in practice. The vulnerability is not listed in the CISA KEV catalog. Attackers must first place a malicious file on the server and then have a developer who opens that file in the profiler to trigger the XSS; therefore the attack vector is limited to development and debugging environments, but the impact on the targeted developer can be significant.
OpenCVE Enrichment
Debian DSA
Github GHSA