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.

Project Subscriptions

No data.

Advisories

No advisories yet.

Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Tue, 24 Nov 2026 13:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Sandbox `__toString()` policy bypass via the `is true` test
Weaknesses CWE-693
CWE-863
References
Metrics cvssV4_0

{'score': 5.3, '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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: Symfony

Published:

Updated: 2026-11-24T13:07:46.698Z

Reserved: 2026-11-20T14:01:43.158Z

Link: CVE-2026-133763

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-24T13:17:24.207

Modified: 2026-11-24T13:17:24.207

Link: CVE-2026-133763

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses