Skip to main content
VulnerabilityPublished

CVE-2026-133763: twig/twig · Protection Mechanism Failure

Affects twig/twigSource CVE Database V5

0
Compare

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

CVSS 4.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (Symfony)CVSS 4.05.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 24 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Twigtwig/twigAffected
  • >=3.21.0 <3.31.1
Fixed in
  • 3.31.1
Packagisttwig/twigpkg:composer/twig/twigOther threatsAffected
  • >=3.21.0 <3.31.1
Fixed in
  • 3.31.1

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. No other mitigations are indicated or required as the fix addresses the sandbox check failure directly.

Description

CVE-2026-133763 is a medium severity vulnerability in the Twig templating engine affecting versions from 3.21.0 up to but not including 3.31.1. The issue involves the sandbox mechanism failing to properly check whether an object’s toString() method is allowed before converting the object to a string. This allows a sandboxed template to print an object through a denied toString() method by using expressions like {{ obj is true }} or when concatenating or filtering the object. The vulnerability does not affect boolean context tests such as {% if obj is true %}. The issue has been fixed in version 3.31.1.

References

Community reviews

Loading reviews…