For Twig 4.0, I rebuilt the whole loop machinery: loop.last now works with any iterator, new helpers replace the bookkeeping code we have all written a hundred times, the if condition makes a comeback, and recursive loops become a first-class feature.
June 11, 2026
#Twig
❤️ 13
👍 4
🚀 7
🎉 6
Sandbox filter, tag and function allow-list bypass when sandbox state changes between renders for a cached `Template`
May 27, 2026
#Twig
Sandbox state regression in deprecated internal wrappers in `src/Resources/core.php`
May 27, 2026
#Twig
Sandbox `__toString()` policy bypass via `Traversable` in `join`/`replace` filters and via the `in`/`not in` operators
May 27, 2026
#Twig
Sandbox `__toString()` policy bypass via dynamic mapping keys
May 27, 2026
#Twig
Sandbox property allowlist bypass via the `column` filter under `SourcePolicyInterface`
May 27, 2026
#Twig
CVE-2026-47732 Sandbox: multiple `__toString()` policy bypasses via unguarded string coercion points
Sandbox: multiple `__toString()` policy bypasses via unguarded string coercion points
May 20, 2026
#Twig
Sandbox does not protect against resource exhaustion
May 20, 2026
#Twig