{"id":"CVE-2026-133767","aliases":["CVE-2026-133767"],"related":[],"kind":"vulnerability","state":"published","title":"Sandbox allow-list and `__toString()` bypass via a dynamic `embed` parent expression","summary":"When the parent of an embed tag was an expression other than a string or a variable, the sandbox didn't see that expression. The functions, filters and tests of the expression weren't checked against the policy, and neither were its conversions to strings. A sandboxed template allowed to use embed could therefore call any function, filter or test, and any __toString() method:\n\n{% embed 'leak_' ~ app_secret() %}{% endembed %}\n\nMethod calls and property reads were not affected, since they're checked at runtime.\n\nThe sandbox now checks the parent expression of embed like any other expression of the template.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"When the parent of an embed tag was an expression other than a string or a variable, the sandbox didn't see that expression. The functions, filters and tests of the expression weren't checked against the policy, and neither were its conversions to strings. A sandboxed template allowed to use embed could therefore call any function, filter or test, and any __toString() method:\n\n{% embed 'leak_' ~ app_secret() %}{% endembed %}\n\nMethod calls and property reads were not affected, since they're checked at runtime.\n\nThe sandbox now checks the parent expression of embed like any other expression of the template.","source":"cvelist"}],"published":"2026-11-24T13:07:50.411Z","modified":"2026-12-01T17:17:29.987Z","severity":{"scorer":"Symfony","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"Symfony","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-693","CWE-863"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.31.1","status":"affected"}],"vendor":"Twig","product":"twig/twig","package":"twig/twig","repo":"https://github.com/twigphp/Twig","source":"cvelist"}],"references":[{"url":"https://symfony.com/cve-2026-133767","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-fmp9-6wxr-cfmq","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/twigphp/Twig/commit/fe395ad247b8e6c6f34f39bc211119ecb11f80b3","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":["Ivan Tse","Fabien Potencier"],"assigner":"Symfony","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-12-01T16:32:44.399Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-133767","url":"https://www.cve.org/CVERecord?id=CVE-2026-133767","licence":"CVE Terms of Use","modified":"2026-12-01T16:51:29.226Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-133767","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133767","licence":"Public domain","modified":"2026-12-01T17:17:29.987Z"}],"updatedAt":"2026-12-01T17:32:13.001Z","epss":{"score":0.00533,"percentile":0.46466,"date":"2026-12-01T12:00:22.000Z"}}