CVE-2026-133771: twig/twig · Cross-site Scripting
Affects twig/twigSource CVE Database V5
Not known to be exploited · CVSS 2.3 Low : upgrade to 3.31.0 when convenient.
Data as of 24 Nov 2026, 13:40 UTC
Thin evidence
One scorer or none| CNA (Symfony) | CVSS 4.0 | 2.3 |
|---|
- Patch
- Available – fixed in 3.31.0
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 24 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade twig/twig to 3.31.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Twigtwig/twig | Affected
| Fixed in
|
Packagisttwig/twigpkg:composer/twig/twigOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Twig to version 3.31.0 or later, where this vulnerability is fixed. No other mitigations are indicated or necessary as the fix removes the unsafe escaping rule.
Description
CVE-2026-133771 is a cross-site scripting (XSS) vulnerability in the Twig templating engine prior to version 3.31.0. The issue arises because the escaper incorrectly considered certain variables safe when imported as aliases in templates, leading to unescaped output of attacker-controlled data. This flaw allows an attacker to inject malicious scripts when the affected Twig templates render unescaped content. The vulnerability has a low CVSS score of 2.3 and was fixed in Twig version 3.31.0.