CVE-2026-47730CWE-79

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

Medium · published July 14, 2026

CVSS v4.0
5.1
EPSS
0%
Percentile
21.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
5.1 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
EPSS
0.00295 · 21.0th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2026-07-14T21:21Z
EPSS history
Timeline
  • 14 JUL 21:21Z
    Twig: XSS in profiler HtmlDumper via unescaped template and profile names
    cvelistv5