| Name | CVE-2026-47730 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DSA-6311-1, DSA-6320-1 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| php-twig (PTS) | bullseye | 2.14.3-1+deb11u2 | fixed |
| bullseye (security) | 2.14.3-1+deb11u4 | fixed | |
| bookworm, bookworm (security) | 3.5.1-1+deb12u3 | fixed | |
| trixie (security), trixie | 3.27.0-0+deb13u1 | fixed | |
| forky, sid | 3.27.1-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| php-twig | source | bullseye | (not affected) | |||
| php-twig | source | bookworm | 3.5.1-1+deb12u3 | DSA-6320-1 | ||
| php-twig | source | trixie | 3.27.0-0+deb13u1 | DSA-6311-1 | ||
| php-twig | source | (unstable) | 3.26.0-1 |
[bullseye] - php-twig <not-affected> (Vulnerable code not present, introduced in 3.0.0)
https://symfony.com/blog/cve-2026-47730-xss-in-profiler-htmldumper-via-unescaped-template-and-profile-names