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 fileexcerpt Twig filter escapes PHP files through highlightstring() 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.
{
"cwe_ids": [
"CWE-79"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45072.json",
"cna_assigner": "GitHub_M"
}{
"cpe": "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "6.4.24"
},
{
"fixed": "6.4.40"
},
{
"introduced": "7.2.9"
},
{
"fixed": "7.4.12"
},
{
"introduced": "8.0.0"
},
{
"fixed": "8.0.12"
}
],
"source": "CPE_RANGE"
}{
"cpe": "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "6.4.24"
},
{
"fixed": "6.4.40"
},
{
"introduced": "7.2.9"
},
{
"fixed": "7.4.12"
},
{
"introduced": "8.0.0"
},
{
"fixed": "8.0.12"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
]
}