Sandbox property allow-list bypass via the `join` filter on non-iterable objects
- State
- Published
- Severity
- 5.3 Medium
- Published
- Nov 24, 2026
- Updated
- Nov 24, 2026
- Reserved
- Nov 20, 2026
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.
| Product | Versions |
|---|---|
| twig/twig Twig | before 3.31.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.3 Medium | Symfony |
Weaknesses
- CWE-863 Incorrect Authorization
References
- CVE-2026-133768Vendor Advisory
- GHSA-p2x6-ppf3-32r3Vendor Advisory
- https://github.com/twigphp/Twig/commit/6bcede134671133a4a056199af5cf4749d189d72Patch
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.