---
title: "CVE-2026-133765"
canonical_url: "https://pkgseek.com/security/CVE-2026-133765"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "unknown"
---

# CVE-2026-133765

The sandbox checks that a template may call toString() on an object before converting it to a string. Since Twig 3.23.0, assignments like x = obj, and the destructuring forms \[a\] = list and {a} = obj, evaluate to the value that they assign. The sandbox didn't check that value, so a sandboxed template could call a denied toString() method:  {{ (x = obj) }} {{ ({secret: s} = obj)\|join }}  No tag needs to be allowed.  The sandbox now checks the result of assignments like the result of filters and functions. {% do x = obj %} and {% if (x = obj) %} still work, since they don't convert the value to …

CVE-2026-133765 is rated UNKNOWN, with 10 indexed affected package builds across 1 distributions.

- **Severity / Score**: UNKNOWN
- **Affected builds**: 10
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | php-twig | 3.27.0-0+deb13u1 | — |
| Debian | trixie | php-twig-cache-extra | 3.27.0-0+deb13u1 | — |
| Debian | trixie | php-twig-cssinliner-extra | 3.27.0-0+deb13u1 | — |
| Debian | trixie | php-twig-doc | 3.27.0-0+deb13u1 | — |
| Debian | trixie | php-twig-extra-bundle | 3.27.0-0+deb13u1 | — |
| Debian | trixie | php-twig-html-extra | 3.27.0-0+deb13u1 | — |
| Debian | trixie | php-twig-inky-extra | 3.27.0-0+deb13u1 | — |
| Debian | trixie | php-twig-intl-extra | 3.27.0-0+deb13u1 | — |
| Debian | trixie | php-twig-markdown-extra | 3.27.0-0+deb13u1 | — |
| Debian | trixie | php-twig-string-extra | 3.27.0-0+deb13u1 | — |
