CVE-2026-47730 json
Twig: XSS in profiler HtmlDumper via unescaped template and profile names
published 2026-06-05 5 mo ago modified 2026-10-24 15 d ago also GHSA-2g2g-8p8h-fgwm , EUVD-2026-44567
- cvss
- 5.4
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 22%
- public exploits
- 0
- none known
Summary
Twig is a template language for PHP. From 3.0.0 until 3.26.0, Twig\Profiler\Dumper\HtmlDumper writes Profile::getTemplate() and Profile::getName() into HTML output without escaping, allowing attacker-controlled template or profile names to inject arbitrary HTML when a browser renders the profiler dump. This issue is fixed in version 3.26.0.
Patch / fix
- packagist twig/twig 3.26.0
- symfony twig 3.26.0
- php-twig Debian 12 3.5.1-1+deb12u3
- php-twig Debian 13 3.27.0-0+deb13u1
- php-twig Debian 14 3.26.0-1
debian advisories DEBIAN-CVE-2026-47730
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-47730 updated cvss 4.6
twig/twig: Twig: Cross-site Scripting (XSS) vulnerability in HTML profiler dump
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 mo ago
Exploit prediction
0.29% chance of exploitation in the next 30 days, higher than 22% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| CNA | 4.0 | 5.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/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 |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | twig/twig | >=3.0.0, <3.26.0 |
3.26.0 |
Affected products
- twigphp Twig
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/twigphp/Twig/commit/a5f6e8793e603ef34fa86aed2a72f9fbe0b43745
patch
-
github.com
/twigphp/Twig/security/advisories/GHSA-2g2g-8p8h-fgwm
web, vendor-advisory
-
github.com
/twigphp/Twig/releases/tag/v3.26.0
web, release-notes
-
github.com
/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2026-47730.yaml
web
-
github.com
/twigphp/Twig
package
-
symfony.com
/cve-2026-47730
web
Sources
- CVE List CVE-2026-47730
- GitHub Advisory GHSA-2g2g-8p8h-fgwm
- NVD CVE-2026-47730
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.