CVE-2026-133770: twig/twig · Cross-site Scripting
Affects twig/twigSource CVE Database V5
Not known to be exploited · CVSS 2.1 Low : upgrade to 3.31.1 when convenient.
Data as of 24 Nov 2026, 13:40 UTC
Thin evidence
One scorer or none| CNA (Symfony) | CVSS 4.0 | 2.1 |
|---|
- Patch
- Available – fixed in 3.31.1
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:L/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.1.
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.1 or later, where the sandbox no longer allows calling the constructor of Markup objects. This official fix prevents the vulnerability from being exploitable.
Description
CVE-2026-133770 is a low-severity cross-site scripting (XSS) vulnerability in the Twig templating engine (twig/twig). The sandbox feature allowed sandboxed templates to call the constructor of Twig\Markup objects, enabling them to replace the content of these objects. This could lead to injection of malicious scripts into trusted pages that render these Markup objects, such as globals in long-running workers. The vulnerability is fixed in version 3.31.1 by disallowing constructor calls on Markup objects within the sandbox.