CVE-2026-133763Sandbox `__toString()` policy bypass via the `is true` test
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: {{ obj is true }} The 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. The sandbox now checks the result of tests like the result of filters and functions.
What to do
Debian has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Debian 14 | php-twig | Fix pending | DEBIAN-CVE-2026-133763 | |
| Debian 13 | php-twig | Fix pending | DEBIAN-CVE-2026-133763 | |
| Debian 12 | php-twig | Fix pending | DEBIAN-CVE-2026-133763 |
What the vendor says
As published in the CVE record by Symfony, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- twig/twig: affected: 3.21.0 to before 3.31.1; fixed in
3.31.1
Vendor advisories:
- https://symfony.com/cve-2026-133763 (vendor-advisory)
- https://github.com/twigphp/Twig/security/advisories/GHSA-567w-cx2v-jc85 (vendor-advisory)
- https://github.com/twigphp/Twig/commit/a41bd2dd466d771cc384b9730be6190eb5a4f4d0 (patch)
References
- https://symfony.com/cve-2026-133763
- https://github.com/twigphp/Twig/security/advisories/GHSA-567w-cx2v-jc85
- https://github.com/twigphp/Twig/commit/a41bd2dd466d771cc384b9730be6190eb5a4f4d0
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.