CVE-2026-45072

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

MEDIUM
5.4
CVSS Score
Published: July 14, 2026 at 06:11 PM UTC
Updated: July 16, 2026 at 03:30 AM UTC
4 products affected across 2 vendorsSymfonySymfonyTwig Bridge

Using symfony by symfony?

Get instant alerts when new vulnerabilities affect symfony - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.4
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.4.24 ≤ v < 6.4.407.2.9 ≤ v < 7.4.128.0.0 ≤ v < 8.0.12
Affected range stops below 6.4.40, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.4.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.0.12, so it looks safe — our inference, not a vendor statement
v < 6.4.40v < 7.4.12v < 8.0.12
Affected range stops below 6.4.40, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.4.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.0.12, so it looks safe — our inference, not a vendor statement
v < 6.4.40
Affected range stops below 6.4.40, so it looks safe — our inference, not a vendor statement
v < 7.4.12v < 8.0.12
Affected range stops below 7.4.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.0.12, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (5)

x_refsource_CONFIRMPatchVendor Advisory
Source: cverecord
https://github.com/symfony/symfony/security/advisories/GHSA-hmr5-2xcr-v8pp
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/symfony/symfony/releases/tag/v6.4.40
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/symfony/symfony/releases/tag/v7.4.12
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/symfony/symfony/releases/tag/v8.0.12

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card