XSS in Symfony Twig

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.

Vulnerability class: XSS (Cross-Site Scripting)

EPSS: 0.003 (21.6th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-47730?
CVE-2026-47730 is a medium-severity vulnerability in Symfony Twig, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2026-07-14.
How severe is CVE-2026-47730?
Medium severity. CVSS v3 base score is 5.4 out of 10.