Auth bypass in Twig Twig/twig
CVE-2026-133768
- CVSS
- Not scored
- Public exploits
- None known
- EPSS
- Not scored yet
- Published
- 2026-11-24
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.
Vulnerability class: Broken Access Control
Published · last modified .
EPSS exploit prediction
FIRST.org has not scored this CVE yet. About EPSS.
Affected products
Weakness classification (CWE)
References
- github.com/twigphp/Twig/commit/6bcede134671133a4a056199af5cf4749d189d72 (patch)
- github.com/twigphp/Twig/security/advisories/GHSA-p2x6-ppf3-32r3 (vendor-advisory)
- symfony.com/cve-2026-133768 (vendor-advisory)