CVE-2026-45072
Symfony is a PHP framework for web and console applications and a …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/symfony/symfony/security/advisories/GHSA-hmr5-2xcr-v8pp
- github.com/symfony/symfony/commit/863aa81c61166f1aa74b7732df316f76113acbdb
- github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-45072.yam
- github.com/FriendsOfPHP/security-advisories/blob/master/symfony/twig-bridge/CVE-2026-45072
- github.com/FriendsOfPHP/security-advisories/blob/master/symfony/web-profiler-bundle/CVE-20
- symfony.com/cve-2026-45072
- github.com/advisories/GHSA-hmr5-2xcr-v8pp
- github.com/symfony/symfony/releases/tag/v6.4.40
- nvd.nist.gov/vuln/detail/CVE-2026-45072
- cve.org/CVERecord?id=CVE-2026-45072
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.