Live threats

All CVEs / Sensiolabs

CVE-2026-45072Sensiolabs Symfony

Low 2.0

Priority
12
CVSS 4.0
2.0
EPSS
—
Auth required
Yes
Published
Jul 14, 2026
Updated
Jul 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Symfony.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist symfony/symfony ≥ 6.4.24 < 6.4.40 6.4.40 composer require "symfony/symfony:^6.4.40"
Packagist symfony/symfony ≥ 7.2.9 < 7.4.12 7.4.12 composer require "symfony/symfony:^7.4.12"
Packagist symfony/symfony ≥ 8.0.0 < 8.0.12 8.0.12 composer require "symfony/symfony:^8.0.12"
Packagist symfony/twig-bridge ≥ 6.4.24 < 6.4.40 6.4.40 composer require "symfony/twig-bridge:^6.4.40"
Packagist symfony/web-profiler-bundle ≥ 7.2.9 < 7.4.12 7.4.12 composer require "symfony/web-profiler-bundle:^7.4.12"
Packagist symfony/web-profiler-bundle ≥ 8.0.0 < 8.0.12 8.0.12 composer require "symfony/web-profiler-bundle:^8.0.12"

Per OSV / GitHub Advisories (GHSA-hmr5-2xcr-v8pp). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
sensiolabssymfony≥ 6.4.24 < 6.4.40
sensiolabssymfony≥ 7.2.9 < 7.4.12
sensiolabssymfony≥ 8.0.0 < 8.0.12

Official sources

References

Links published by the sources. Open them with care.