CVE-2026-47730
MEDIUMTwig: XSS in profiler HtmlDumper via unescaped template and profile names
Title source: cnaDescription
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.
References (3)
Core 3
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/twigphp/Twig/security/advisories/GHSA-2g2g-8p8h-fgwm
X_Refsource_Misc x_refsource_misc
https://github.com/twigphp/Twig/commit/a5f6e8793e603ef34fa86aed2a72f9fbe0b43745
X_Refsource_Misc x_refsource_misc
https://github.com/twigphp/Twig/releases/tag/v3.26.0
Scores
CVSS v3
5.4
EPSS
0.0017
EPSS Percentile
6.6%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-79
Status
published
Products (2)
symfony/twig
3.0.0 - 3.26.0
twigphp/Twig
>= 3.0.0, < 3.26.0
Published
Jul 14, 2026
Tracked Since
Jul 15, 2026