{"id":"CVE-2026-133763","aliases":["CVE-2026-133763"],"related":[],"kind":"vulnerability","state":"published","title":"Sandbox `__toString()` policy bypass via the `is true` test","summary":"The sandbox checks that a template may call toString() on an object before converting it to a string. For an object, the is true test evaluates to the object itself, and that result wasn't checked. A sandboxed template could therefore print an object through a denied toString() method:\n\n{{ obj is true }}\n\nThe same applies when the result is concatenated or passed to a filter. No tag needs to be allowed. A test in a boolean context, like {% if obj is true %}, isn't affected, since it doesn't convert the object to a string.\n\nThe sandbox now checks the result of tests like the result of filters and functions.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The sandbox checks that a template may call toString() on an object before converting it to a string. For an object, the is true test evaluates to the object itself, and that result wasn't checked. A sandboxed template could therefore print an object through a denied toString() method:\n\n{{ obj is true }}\n\nThe same applies when the result is concatenated or passed to a filter. No tag needs to be allowed. A test in a boolean context, like {% if obj is true %}, isn't affected, since it doesn't convert the object to a string.\n\nThe sandbox now checks the result of tests like the result of filters and functions.","source":"cvelist"}],"published":"2026-11-24T13:07:46.698Z","modified":"2026-12-01T20:18:24.967Z","severity":{"scorer":"Symfony","scheme":"CVSS:4.0","vector":"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","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:N/VA:N/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-693","CWE-863"],"affected":[{"ranges":[{"type":"semver","introduced":"3.21.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-133763","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-567w-cx2v-jc85","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/twigphp/Twig/commit/a41bd2dd466d771cc384b9730be6190eb5a4f4d0","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":["Eric Labrador Sainz","Jacko","Inanna Malick","Fabien Potencier"],"assigner":"Symfony","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-30T17:56:06.087Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-133763","url":"https://www.cve.org/CVERecord?id=CVE-2026-133763","licence":"CVE Terms of Use","modified":"2026-12-01T19:38:31.906Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-133763","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133763","licence":"Public domain","modified":"2026-12-01T20:18:24.967Z"}],"updatedAt":"2026-12-01T20:32:18.375Z","epss":{"score":0.00533,"percentile":0.46465,"date":"2026-12-01T12:00:22.000Z"}}