Saltar al contenido
DayZeroHub
Media Sin redactarCVSS 5.3CVE-2026-133767

CVE-2026-133767: Sandbox allow-list and `__toString()` bypass via a dynamic `embed` parent expression

Twig twig/twig

Aviso preliminar: se publicó de inmediato con los datos originales de las fuentes, sin redacción editorial. En breve se reemplaza por una versión redactada y revisada.

Resumen

CVE-2026-133767: vulnerabilidad de severidad media (CVSS 5.3) en Twig twig/twig.

Qué ocurre

Descripción original de la fuente (en inglés): When the parent of an embed tag was an expression other than a string or a variable, the sandbox didn't see that expression. The functions, filters and tests of the expression weren't checked against the policy, and neither were its conversions to strings. A sandboxed template allowed to use embed could therefore call any function, filter or test, and any __toString() method: {% embed 'leak_' ~ app_secret() %}{% endembed %} Method calls and property reads were not affected, since they're checked at runtime. The sandbox now checks the parent expression of embed like any other expression of the template.

Por qué importa

Severidad media, CVSS 5.3.

Productos y versiones afectados

Twig twig/twig < 3.31.1

ProductoVersionesCorregido en
Twig twig/twig< 3.31.1—

Acción recomendada por la fuente

Consultá las referencias oficiales para conocer la corrección o mitigación.

Información tomada de la fuente o del proveedor. Verificala en el enlace original antes de actuar.

Fuentes y referencias

Debilidades (CWE): CWE-693, CWE-863

Historial de cambios relevantes

  1. Publicado

    Aviso preliminar publicado.