Skip to main content
← All vulnerabilities
CVE-2026-47730GHSA-2G2G-8P8H-FGWM

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.26.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • twigphp Twig

    From 3.0.0 · fixed in 3.26.0

  • twig/twigPackagist

    From 3.0.0 · fixed in 3.26.0

References 3

GitHub · twigphp/Twig