Read the docs
TI-2026-32920 Aliases CVE-2026-45072GHSA-hmr5-2xcr-v8pp

Symfony: Stored XSS in WebProfiler CodeExtension::fileExcerpt() — Unescaped Non-PHP File Rendering

Priority LOW 11CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
Active
Attack complexity
Low
Attack requirements
Present
Impact type
Cross-site scripting
Confidentiality · integrity · availability
None · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00305 23rd percentileScored 2026-11-08
Fix Fixed symfony (symfony): 6.4.40, 7.4.12, 8.0.12twig-bridge (symfony): 6.4.40+4 more products

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
symfonysymfony6.4.24 to before 6.4.40; 7.2.9 to before 7.4.12; 8.0.0-BETA1 to before 8.0.126.4.40, 7.4.12, 8.0.12Patch availableCNA
symfonytwig-bridge6.4.24 to before 6.4.406.4.40Patch availableCNA
symfonyweb-profiler-bundle7.2.9 to before 7.4.12; 8.0.0-BETA1 to before 8.0.127.4.12, 8.0.12Patch availableCNA
—symfony/symfony (Packagist)6.4.24 to before 6.4.406.4.40Patch availableGHSA-hmr5-2xcr-v8pp
—symfony/symfony (Packagist)7.2.9 to before 7.4.127.4.12Patch availableGHSA-hmr5-2xcr-v8pp
—symfony/symfony (Packagist)8.0.0 to before 8.0.128.0.12Patch availableGHSA-hmr5-2xcr-v8pp
—symfony/twig-bridge (Packagist)6.4.24 to before 6.4.406.4.40Patch availableGHSA-hmr5-2xcr-v8pp
—symfony/web-profiler-bundle (Packagist)7.2.9 to before 7.4.127.4.12Patch availableGHSA-hmr5-2xcr-v8pp
—symfony/web-profiler-bundle (Packagist)8.0.0 to before 8.0.128.0.12Patch availableGHSA-hmr5-2xcr-v8pp
  • symfony Vendorsymfony Affected 6.4.24 to before 6.4.40; 7.2.9 to before 7.4.12; 8.0.0-BETA1 to before 8.0.12 Fixed in 6.4.40, 7.4.12, 8.0.12 Patch available CNA
  • twig-bridge Vendorsymfony Affected 6.4.24 to before 6.4.40 Fixed in 6.4.40 Patch available CNA
  • web-profiler-bundle Vendorsymfony Affected 7.2.9 to before 7.4.12; 8.0.0-BETA1 to before 8.0.12 Fixed in 7.4.12, 8.0.12 Patch available CNA
  • symfony/symfony (Packagist) Vendor— Affected 6.4.24 to before 6.4.40 Fixed in 6.4.40 Patch available GHSA-hmr5-2xcr-v8pp
  • symfony/symfony (Packagist) Vendor— Affected 7.2.9 to before 7.4.12 Fixed in 7.4.12 Patch available GHSA-hmr5-2xcr-v8pp
  • symfony/symfony (Packagist) Vendor— Affected 8.0.0 to before 8.0.12 Fixed in 8.0.12 Patch available GHSA-hmr5-2xcr-v8pp
  • symfony/twig-bridge (Packagist) Vendor— Affected 6.4.24 to before 6.4.40 Fixed in 6.4.40 Patch available GHSA-hmr5-2xcr-v8pp
  • symfony/web-profiler-bundle (Packagist) Vendor— Affected 7.2.9 to before 7.4.12 Fixed in 7.4.12 Patch available GHSA-hmr5-2xcr-v8pp
  • symfony/web-profiler-bundle (Packagist) Vendor— Affected 8.0.0 to before 8.0.12 Fixed in 8.0.12 Patch available GHSA-hmr5-2xcr-v8pp

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*6.4.24 to before 6.4.40; 7.2.9 to before 7.4.12; 8.0.0 to before 8.0.12Vulnerablesensiolabs
  • cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* Versions 6.4.24 to before 6.4.40; 7.2.9 to before 7.4.12; 8.0.0 to before 8.0.12 Vulnerable ·sensiolabs

Remediation

  • Fix · CNA symfony (symfony) Fixed in 6.4.40, 7.4.12, 8.0.12
  • Fix · CNA twig-bridge (symfony) Fixed in 6.4.40
  • Fix · CNA web-profiler-bundle (symfony) Fixed in 7.4.12, 8.0.12
  • Fix · GHSA-hmr5-2xcr-v8pp symfony/symfony (Packagist) Fixed in 6.4.40 Advisory →
  • Fix · GHSA-hmr5-2xcr-v8pp symfony/symfony (Packagist) Fixed in 7.4.12 Advisory →
  • Fix · GHSA-hmr5-2xcr-v8pp symfony/symfony (Packagist) Fixed in 8.0.12 Advisory →
  • Fix · GHSA-hmr5-2xcr-v8pp symfony/twig-bridge (Packagist) Fixed in 6.4.40 Advisory →
  • Fix · GHSA-hmr5-2xcr-v8pp symfony/web-profiler-bundle (Packagist) Fixed in 7.4.12 Advisory →
  • Fix · GHSA-hmr5-2xcr-v8pp symfony/web-profiler-bundle (Packagist) Fixed in 8.0.12 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-45072
  2. 2026-10-03 Alias added: GHSA-hmr5-2xcr-v8pp

References

  • TI-2024-33775 Ability to change environment from query in symfony/runtime CVSS 3.1HIGH 7.3
  • TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
  • TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
  • TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
  • TI-2026-35851 Incorrect authorization in symfony CVSS 4.0HIGH 8.7
  • TI-2026-35264 Improper input validation in symfony CVSS 4.0HIGH 8.3
See all 94 →

Sources