CVE-2026-133768: Sandbox property allow-list bypass via the `join` filter on non-iterable objects

Published Nov 24, 2026
·
Updated

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 Software

1 affected component
packagist/twig/twig

Event History

Nov 24, 2026
CVE Published
via MITRE·01:07 PM
Data Sourced
via MITRE·01:07 PM
DescriptionWeakness
Data Sourced
via NVD·01:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using Twig's sandbox mode where templates can apply the join filter to object values are exposed. The issue matters when those objects contain private or protected properties that the sandbox policy would otherwise deny.

2

What does an attacker need to exploit it?

An attacker needs the ability to cause a sandboxed Twig template to run the join filter on a non-iterable object, such as {{ user|join(',') }}. This can cause the object's properties, including private and protected ones, to be converted and printed.

3

How does the corrected behavior affect templates?

A non-iterable value is now treated as a single item for joining. Stringable objects produce their checked string representation, while other objects throw an error, consistent with the first and last filters.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203