CVE Catalog

CVE-2026-45072

MediumCVSS 5.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.23%

14th percentile - higher than 14% of all known CVEs

Summary

A stored XSS vulnerability in Symfony's development profiler file_excerpt Twig filter interpolates lines from non-PHP files directly into <code> elements. Affects versions from 6.4.24 to 6.4.40, 7.4.12, and 8.0.12.

Risk Assessment

An attacker can inject malicious JavaScript into log files (e.g., var/log/dev.log) that executes when a developer views the profiler, potentially leading to session theft or data compromise.

Recommendation

Upgrade Symfony to version 6.4.40, 7.4.12, or 8.0.12 immediately, depending on your branch.

Other vulnerabilities in Symfony

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS