Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-133768: medium-severity vulnerability (CVSS 5.3) in Twig twig/twig.
What happened
Original description from the source: The join filter converted a value that isn't iterable with (array) $value. For an object, that gives every property, including the private and protected ones. A sandboxed template allowed to use join could therefore print properties that the policy denies, and that templates can't read otherwise: {{ user|join(',') }} A value that isn't iterable is now joined as a single item. A Stringable object prints its checked string, and other objects throw, as with the first and last filters.
Why it matters
Medium severity, CVSS 5.3.
Affected products and versions
Twig twig/twig < 3.31.1
| Product | Versions | Fixed in |
|---|---|---|
| Twig twig/twig | < 3.31.1 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://symfony.com/cve-2026-133768 — CVE Program
- https://github.com/twigphp/Twig/security/advisories/GHSA-p2x6-ppf3-32r3 — CVE Program
- https://github.com/twigphp/Twig/commit/6bcede134671133a4a056199af5cf4749d189d72 — CVE Program
Weaknesses (CWE): CWE-863
Relevant change history
Published
Preliminary advisory published.