ADVISORIES

Vulnerability

CVE-2026-47730

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.

5 advisories report this vulnerability, across 3 ecosystems.

Medium severity All Debian 3Packagist 1Ubuntu 1

Advisories

  • DEBIAN-CVE-2026-47730

    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…

    CVE-2026-47730 Debian Updated 25 October 2026
  • DSA-6311-1

    php-twig - security update

    CVE-2026-24425CVE-2026-46627CVE-2026-46628CVE-2026-46629 Debian Updated 20 November 2026
  • DSA-6320-1

    php-twig - security update

    CVE-2024-51754CVE-2026-46628CVE-2026-46629CVE-2026-46633 Debian Updated 20 November 2026
  • GHSA-2g2g-8p8h-fgwm

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

    Low CVE-2026-47730 Packagist Updated 10 September 2026
  • UBUNTU-CVE-2026-47730

    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…

    CVE-2026-47730 Ubuntu Updated 17 October 2026

References