Skip to main content

Symfony WebProfiler EUVDEUVD-2026-44366

| CVE-2026-45072 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-05-27 https://github.com/symfony/symfony GHSA-hmr5-2xcr-v8pp
2.0
CVSS 4.0 · Vendor: https://github.com/symfony/symfony
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify active Symfony dev profiler endpoint
  2. Delivery
    Inject XSS payload into logged user-controlled input (e.g., User-Agent header)
  3. Exploit
    Payload written to var/log/dev.log
  4. Execution
    Developer opens profiler page rendering log file excerpt
  5. Persist
    Unescaped payload executes in developer browser
  6. Impact
    Steal session tokens or pivot within dev infrastructure

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The Symfony WebProfiler must be active, which is the default when APP_ENV=dev is set - the standard configuration for all Symfony development environments. The attacker requires an independent write primitive to any file under the project root whose path the profiler will later render as a source excerpt; var/log/dev.log is the most accessible target because many Symfony applications log user-supplied data (request headers, query parameters, form fields) without sanitization. The stored payload is triggered by developer interaction - opening any profiler page that renders an excerpt from the poisoned file. Exploitation is limited by: (1) the profiler being dev-only and absent from properly configured production deployments; (2) the need for a separate file-write vulnerability to plant the payload; (3) the requirement for a developer to view the specific profiler page referencing the poisoned file. Authentication requirements cannot be confirmed from available data as no CVSS vector was provided.

Impact

No CVSS vector or score is provided for this CVE, which prevents quantitative scoring of attack vector, complexity, and privilege requirements. From the description, this vulnerability is constrained to development environments - the WebProfiler is explicitly a dev-only debug UI and is disabled by default in production (APP_ENV=prod). The attack is not directly exploitable from the network against Symfony itself; it requires a chained write primitive to any project-root file, which represents meaningful additional complexity. There is no EPSS score, no CISA KEV listing, and no public exploit identified at time of analysis. Despite these limiting factors, the risk to development teams is real: shared dev environments, CI pipelines with profiler enabled, or misconfigured staging deployments could expose developers to session hijacking or credential theft. The XSS payload executes with the developer's browser privileges against whatever authenticated session they hold in the profiler.

Exploit ScenarioDerived

An attacker with a secondary write vector - for example, the ability to inject unsanitized content into application logs by crafting HTTP requests whose User-Agent or URL parameters contain <script>alert(document.cookie)</script> - poisons var/log/dev.log with a JavaScript payload. When a developer subsequently opens the Symfony WebProfiler and navigates to a request trace or exception page that renders a source excerpt from the log file, the unescaped payload executes in the developer's browser, potentially exfiltrating session tokens or development credentials. No public proof-of-concept code exists at time of analysis, but the log-injection-to-XSS chain is a well-understood technique requiring no novel exploitation.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 27, 2026

Stored XSS in Symfony's WebProfiler CodeExtension::fileExcerpt() allows JavaScript execution in a developer's browser when the profiler renders non-PHP files containing attacker-controlled content. Affected are symfony/symfony 6.4.24-6.4.39, 7.2.9-7.4.11, and 8.0.0-8.0.11, along with symfony/twig-bridge 6.4.24-6.4.39. The attack requires a separate write primitive to any file under the project root - log poisoning via var/log/dev.log is the canonical vector - after which exploitation is reliable and requires only developer interaction with the profiler. No public exploit has been identified at time of analysis, and the vulnerability is scoped to development environments only.

RemediationAI

Upgrade to the vendor-released patched versions: symfony/symfony 6.4.40 (for the 6.4.x track), 7.4.12 (for 7.x), or 8.0.12 (for 8.0.x), and symfony/twig-bridge 6.4.40. Run composer update symfony/symfony symfony/twig-bridge symfony/web-profiler-bundle and verify installed versions. The patch is confirmed at commit 863aa81c61166f1aa74b7732df316f76113acbdb (https://github.com/symfony/symfony/commit/863aa81c61166f1aa74b7732df316f76113acbdb). As a compensating control prior to patching, ensure the WebProfiler is fully disabled in any shared, staging, or CI environment by setting web_profiler.toolbar: false and web_profiler.intercept_redirects: false in the environment config, or by verifying APP_ENV=prod. Restricting the /_profiler route to localhost-only via web server ACL reduces exposure but does not eliminate the vulnerability if developers access profiler remotely. Full advisory: https://github.com/symfony/symfony/security/advisories/GHSA-hmr5-2xcr-v8pp.

Affected VersionsENISA

symfony 8.0.0-BETA1, < 8.0.12
web-profiler-bundle 7.2.9, < 7.4.12
symfony 7.2.9, < 7.4.12
web-profiler-bundle 8.0.0-BETA1, < 8.0.12
symfony 6.4.24, < 6.4.40
twig-bridge 6.4.24, < 6.4.40

Affected Packages

composer symfony/symfony fix: 6.4.40, 7.4.12, 8.0.12
composer symfony/twig-bridge fix: 6.4.40
composer symfony/web-profiler-bundle fix: 7.4.12, 8.0.12
euvd symfony_6_4_24 fix: 6.4.40
euvd symfony_7_2_9 fix: 7.4.12
euvd symfony_8_0_0_beta1 fix: 8.0.12
euvd twig_bridge_6_4_24 fix: 6.4.40
euvd web_profiler_bundle_7_2_9 fix: 7.4.12
euvd web_profiler_bundle_8_0_0_beta1 fix: 8.0.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 9 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerable code resides in src/Symfony/Bridge/Twig/Extension/CodeExtension.php within the fileExcerpt() method, which is exposed as a custom Twig filter used across multiple WebProfiler pages to render source-code excerpts. PHP files are safely processed through highlight_string(), which internally HTML-encodes output. However, non-PHP files (HTML, YAML, JavaScript, log files, and any other extension) were handled by splitting raw file contents on newlines and interpolating each line directly into <code>{$line}</code> without sanitization - a textbook CWE-79 (Improper Neutralization of Input During Web Page Generation) sink. The fix, confirmed in commit 863aa81c, moves the htmlspecialchars($contents, ENT_QUOTES | ENT_SUBSTITUTE, $charset) call to apply to the entire file contents before the newline split, ensuring all lines are safe before HTML interpolation. Affected packages are pkg:composer/symfony/symfony, pkg:composer/symfony/twig-bridge, and pkg:composer/symfony/web-profiler-bundle.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/symfony/symfony) PRIMARY 2.0 LOW
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

Primary rating from Vendor (https://github.com/symfony/symfony) · only source for this CVE.

CVSS VectorVendor: https://github.com/symfony/symfony

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jul 14, 2026 - 19:22 NVD
2.0 (LOW)

DescriptionCVE.org

Description

Symfony's profiler, a development only debug UI, renders source-code excerpts on several pages using Twig's custom file_excerpt filter. This filter renders PHP files via highlight_string() (which escapes HTML), but renders non-PHP files by splitting on \n and interpolating each line directly into <code>{$line}</code> with no escaping.

An attacker who can write arbitrary bytes into any file under the project root (including e.g. var/log/dev.log), achieves stored XSS against any developer who later opens that file in the profiler.

Resolution

The file_excerpt filter now properly escapes each line of non-PHP files using htmlspecialchars() before concatenating them.

The patch for this issue is available here for branch 6.4.

Credits

Symfony would like to thank Claude Mythos Preview (via Project Glasswing) for reporting the issue and providing the fix.

Threat Intelligence Overview

EPSS Score
0.1%
Top 80% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy