Vulnerability

CVE-2026-47730

mediumCVSS 4.0 5.1Published 14 Jul 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Symfony twig

Weakness type

References

  • github.com /twigphp/Twig/commit/a5f6e8793e603ef34fa86aed2a72f9fbe0b437…
  • github.com /twigphp/Twig/releases/tag/v3.26.0
  • github.com /twigphp/Twig/security/advisories/GHSA-2g2g-8p8h-fgwm

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning