CVE-2026-47730
Medium
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.
SeverityMedium
CVSS5.4
Exploit probability—
Product
Symfony Twig
PublishedJul 14, 2026
First seenJul 14, 2026
Weakness typeCWE-79Cross-site scripting (XSS)
How to fix
Update
- symfony twig3.26.0 or later
- twig/twig3.26.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| symfony twig | 3.0.0 ≤ v < 3.26.0 | 3.26.0 |
| twig/twigPackagist | 3.0.0 ≤ v < 3.26.0 | 3.26.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.