CVE-2026-133768

Sandbox property allow-list bypass via the join filter on non-iterable objects

Medium published · updated

5.3
CVSS score out of 10 · NVD (b5aa5c7f-767d-4597-9c64-3ac08b8711c6)

Description

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 products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
twig/twig composer 0 → <3.31.13.31.1 CVE.org
twig/twig twig 0 → <3.31.13.31.1 CVE.org

References