CVE-2026-133768
Published:November 24, 2026
Updated:November 26, 2026
The join filter converted a value that isn't iterable with (array) $value. For an object, that gives every property, including the private and protected ones. A sandboxed template allowed to use join could therefore print properties that the policy denies, and that templates can't read otherwise:
{{ user|join(',') }}
A value that isn't iterable is now joined as a single item. A Stringable object prints its checked string, and other objects throw, as with the first and last filters.
Affected Packages
https://github.com/twigphp/Twig.git (GITHUB):
Affected version(s) >=v0.9.5 <v3.31.1 || >=v1.0.0-RC1 <v3.31.1 || >=v2.0.0 <v3.31.1 || >=v3.0.0-BETA1 <v3.31.1Fix Suggestion:
Update to version v3.31.1https://github.com/twigphp/Twig.git (GITHUB):
Affected version(s) =v4.0.0-alpha1 <v4.0.0-beta1Fix Suggestion:
Update to version v4.0.0-beta1twig/twig (PHP):
Affected version(s) >=v2.0.0 <v3.31.1 || >=v0.9.5 <v3.31.1 || >=v1.0.0-RC1 <v3.31.1 || >=v3.0.0-BETA1 <v3.31.1Fix Suggestion:
Update to version v3.31.1twig/twig (PHP):
Affected version(s) =v4.0.0-alpha1 <v4.0.0-beta1Fix Suggestion:
Update to version v4.0.0-beta1Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Incorrect Authorization
EPSS
Base Score:
0.53