Twig sandbox escape: multiple __toString() policy bypasses via unguarded string coercion (GHSA-pr2w-4gpj-cpq4)
Twig's template sandbox can be escaped through several __toString() coercion points — code paths that stringify an object without first routing the call through the sandbox security policy, letting a crafted template reach methods the policy was meant to block. Anyone rendering user-supplied or semi-trusted Twig templates (CMS theming, email-template editors, low-code form/report builders) is exposed, because the sandbox is the control and the control is what leaks. Upgrade Twig to the patched release and audit any feature that lets users author Twig markup. Disclosed 17:47 ET, just before tonight's synthesis lock — logged here on the Last Watch.