Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify active Symfony dev profiler endpoint
-
DeliveryInject XSS payload into logged user-controlled input (e.g., User-Agent header)
-
ExploitPayload written to var/log/dev.log
-
ExecutionDeveloper opens profiler page rendering log file excerpt
-
PersistUnescaped payload executes in developer browser
-
ImpactSteal 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 |
| 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 ( |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-44366
GHSA-hmr5-2xcr-v8pp
NVD
CVE.org
EPSS
VulDB
Exploit-DB