guest@ro0t: ~ — bash theme: [green] [amber]

guest@ro0t:~$ echo $MOTD

notes, code and logs from the superuser

guest@ro0t:~/cve$ cat cve-2026-133763.md

[MEDIUM 5.3] # CVE-2026-133763: The sandbox checks that a template may call toString() on an object before converting it to a string. For an o...

by darthoreo · · in cve/

#cwe-693 #cwe-863 #medium

CVE-2026-133763 · severity: MEDIUM · CVSS 5.3 (v4.0)

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.

Details

  • status: Received
  • published: 2026-11-24 08:17 EST
  • last modified: 2026-11-24 08:17 EST
  • weakness: CWE-693, CWE-863
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

References

-- EOF --

[ cd .. ]