Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-133770
Published:November 24, 2026
Updated:November 29, 2026
The sandbox allows every method of Twig\Markup objects, including their public constructor. A sandboxed template can therefore call __construct() on any Markup object that it reaches, and replace its content: {% do banner.__construct('<script>alert(1)</script>', 'UTF-8') %} A template gains nothing by rewriting its own output. The impact is on the Markup objects that come from the application and are also rendered elsewhere, like a global in a long-running worker. Their new content then ends up in trusted pages that aren't sandboxed. The sandbox no longer allows calling the constructor of Markup objects.
Affected Packages
https://github.com/twigphp/Twig.git (GITHUB):
Affected version(s) =v4.0.0-alpha1 <v4.0.0-beta1
Fix Suggestion:
Update to version v4.0.0-beta1
https://github.com/twigphp/Twig.git (GITHUB):
Affected version(s) >=v1.0.0-RC1 <v3.31.1 || >=v2.0.0 <v3.31.1 || >=v3.0.0-BETA1 <v3.31.1
Fix Suggestion:
Update to version v3.31.1
twig/twig (PHP):
Affected version(s) >=v2.0.0 <v3.31.1 || >=v1.0.0-RC1 <v3.31.1 || >=v3.0.0-BETA1 <v3.31.1
Fix Suggestion:
Update to version v3.31.1
twig/twig (PHP):
Affected version(s) =v4.0.0-alpha1 <v4.0.0-beta1
Fix Suggestion:
Update to version v4.0.0-beta1
Do you need more information?
Contact Us
CVSS v4
Base Score:
2.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
LOW
User Interaction
PASSIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation
Incorrect Authorization
EPSS
Base Score:
0.55