CVE-2026-133765: twig/twig · Protection Mechanism Failure
Affects twig/twigSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium : 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 | 5.3 |
|---|
- Patch
- Available – fixed in 3.31.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/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 this vulnerability is fixed. The vendor advisory confirms the fix is included in 3.31.1. No other mitigation is required as the vulnerability is addressed by this official patch.
Description
CVE-2026-133765 is a medium severity vulnerability in Twig's sandbox mechanism affecting versions from 3.23.0 up to but not including 3.31.1. The issue arises because the sandbox did not check the result of certain assignment expressions that implicitly convert objects to strings, allowing a sandboxed template to call a denied toString() method. This could lead to unauthorized method calls within sandboxed templates. The vulnerability is fixed in version 3.31.1.