CVE-2026-47730

MEDIUM

Twig: XSS in profiler HtmlDumper via unescaped template and profile names

Title source: cna
STIX 2.1

Description

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.

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