CVE-2026-45072Symfony: Stored XSS in WebProfiler CodeExtension::fileExcerpt() — Unescaped Non-PHP File Rendering
- 2.0LowCVSS base score
- 0.30%Exploitation in 30 daysEPSS · top 76% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 2 months later
· 2 months later
Published
- 1 day later
· 1 day later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 4.0 | Low2.0 | 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 |
| NVDNVD · Analyzed | 4.0 | Low2.0 | 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 |
- EPSS (exploitation in 30 days)
- 0.30% · top 76% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Low 2.0.
Affected products
- affected >= 6.4.24, < 6.4.40
- affected >= 7.2.9, < 7.4.12
- affected >= 8.0.0-BETA1, < 8.0.12
- affected >= 6.4.24, < 6.4.40
- affected >= 7.2.9, < 7.4.12
- affected >= 8.0.0-BETA1, < 8.0.12
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Packagistsymfony/symfonyGHSA-hmr5-2xcr-v8pp (opens in a new tab)
- Packagistsymfony/twig-bridgeGHSA-hmr5-2xcr-v8pp (opens in a new tab)
- Packagistsymfony/web-profiler-bundleGHSA-hmr5-2xcr-v8pp (opens in a new tab)
References
References5
- https://github.com/symfony/symfony/security/advisories/GHSA-hmr5-2xcr-v8pp (opens in a new tab)x_refsource_CONFIRM
- https://github.com/symfony/symfony/commit/863aa81c61166f1aa74b7732df316f76113acbdb (opens in a new tab)x_refsource_MISC
- https://github.com/symfony/symfony/releases/tag/v6.4.40 (opens in a new tab)x_refsource_MISC
- https://github.com/symfony/symfony/releases/tag/v7.4.12 (opens in a new tab)x_refsource_MISC
- https://github.com/symfony/symfony/releases/tag/v8.0.12 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-44366 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-hmr5-2xcr-v8pp (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-45072)Record last updated .