CVE-2026-133768
Sandbox property allow-list bypass via the `join` filter on non-iterable objects
Medium · 5.3Fix available
- CVSS
- 5.3
- EPSS
- 0.53% (p39)
- Published
- 2026-11-24
- Age
- 5d old
- Modified
- 2026-11-27
- Product
- Twig twig/twig
- Aliases
- GHSA-p2x6-ppf3-32r3
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
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.
Fixed in
3.31.1
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| unknown | twig/twig | >=0, <3.31.1 | 3.31.1 |
Sources
- NVD · first seen 5d ago · NVD terms of use
- OSV · first seen 5d ago · CC-BY 4.0
- CVE List · first seen 5d ago · CVE Terms of Use
References
- https://symfony.com/cve-2026-133768 vendor-advisory
- https://github.com/twigphp/Twig/security/advisories/GHSA-p2x6-ppf3-32r3 vendor-advisory
- https://github.com/twigphp/Twig/commit/6bcede134671133a4a056199af5cf4749d189d72 patch
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133768.json advisory
- https://github.com/twigphp/Twig package
- https://nvd.nist.gov/vuln/detail/CVE-2026-133768 advisory
- https://packagist.org web