CVE-2026-133771
CVE-2026-133771 · Missing autoescaping for a variable named like a macro import alias of another scope
CVSS 2.3 · Baja · EPSS 0,7% · Corrección disponible
Compara con tu versión instalada
Los productos afectados y las versiones corregidas conocidas son datos públicos. Compáralos con tu versión instalada.
- twig/twigActualiza a 3.31.0
- php-twig Debian 12Sin corrección publicada
- php-twig Debian 13Sin corrección publicada
- php-twig Debian 14Actualiza a 3.31.0-1
- y 5 más
Comprueba la versión instalada:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="php-twig"'Evalúa los riesgos de tu servidor
La comprobación gratuita te da una puntuación y un resumen de riesgos por pila tecnológica, sin registro. No indica si esta vulnerabilidad concreta te afecta.
La monitorización compara los datos públicos con el software de tus servidores. Ofrece hallazgos detallados y el orden de las actualizaciones.
curl -fsSL https://patchfirst.dev/check.sh | shLos canales publican noticias generales sobre tecnologías; la monitorización te avisa de nuevos hallazgos en tus servidores en el panel, mediante notificaciones del navegador, en Telegram o por webhook.
Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.
The escaper considered x.attr, x['key'] and x.method() safe whenever {% import ... as x %} appeared anywhere in the template. Macro calls haven't needed this rule since Twig 3.0. It only matched ordinary variables that have the name of an alias imported in another block or macro, and printed them without escaping:
{% block header %}{% import _self as item %}{{ item.hello() }}{% endblock %} {% block content %}{% for item in items %}{{ item.body }}{% endfor %}{% endblock %}
Here, item.body is printed raw. This leads to XSS when the value comes from an attacker. The same happens with an import in a macro and an argument of the same name in another macro. It also happens with a template-level import placed after the block that uses the name.
The rule is removed. Macro calls through an alias are still considered safe.
- Publicación
- Actualización
Pila tecnológica: system
Productos y versiones afectados
twig/twig
- Versiones
- ≥ 0, < 3.31.0: Afectada (semver)
Actualiza a 3.31.0
php-twig Debian 12
- Versiones
- 3.10.1-1
- 3.10.3-1
- 3.11.0-1
- 3.13.0-1
- 3.14.0-1
- 3.14.0-2
Todas las versiones (63)
- 3.14.0-3
- 3.14.0-4
- 3.14.2-1
- 3.14.2-2
- 3.14.2-3
- 3.15.0-1
- 3.15.0-2
- 3.17.1-1
- 3.17.1-2
- 3.18.0-1
- 3.18.0-2
- 3.18.0-4
- 3.18.0-5
- 3.18.0-6
- 3.18.0-7
- 3.19.0-1
- 3.19.0-1~bootstrap
- 3.20.0-1
- 3.20.0-1~bootstrap
- 3.20.0-2
- 3.21.1-1
- 3.21.1-2
- 3.21.1-3
- 3.22.0-1
- 3.22.0-2
- 3.22.1-1
- 3.22.1-2
- 3.22.1-3
- 3.22.2-1
- 3.22.2-2
- 3.23.0-1
- 3.23.0-2
- 3.24.0-1
- 3.26.0-1
- 3.27.0-1
- 3.27.1-1
- 3.28.0-1
- 3.30.0-1
- 3.31.0-1
- 3.31.1-1
- 3.5.1-1
- 3.5.1-1+deb12u1
- 3.5.1-1+deb12u2
- 3.5.1-1+deb12u3
- 3.6.0-1
- 3.6.1-1
- 3.7.0-1
- 3.7.1-1
- 3.7.1-2
- 3.7.1-3
- 3.8.0-1
- 3.8.0-2
- 3.8.0-3
- 3.8.0-4
- 3.9.3-1
- 4.0.0~alpha1-1
- 4.0.0~beta1-1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
php-twig Debian 13
- Versiones
- 3.20.0-2
- 3.21.1-1
- 3.21.1-2
- 3.21.1-3
- 3.22.0-1
- 3.22.0-2
Todas las versiones (25)
- 3.22.1-1
- 3.22.1-2
- 3.22.1-3
- 3.22.2-1
- 3.22.2-2
- 3.23.0-1
- 3.23.0-2
- 3.24.0-1
- 3.26.0-0+deb13u1
- 3.26.0-1
- 3.27.0-0+deb13u1
- 3.27.0-1
- 3.27.1-1
- 3.28.0-1
- 3.30.0-1
- 3.31.0-1
- 3.31.1-1
- 4.0.0~alpha1-1
- 4.0.0~beta1-1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
php-twig Debian 14
- Versiones
- 3.20.0-2
- 3.21.1-1
- 3.21.1-2
- 3.21.1-3
- 3.22.0-1
- 3.22.0-2
Todas las versiones (19)
- 3.22.1-1
- 3.22.1-2
- 3.22.1-3
- 3.22.2-1
- 3.22.2-2
- 3.23.0-1
- 3.23.0-2
- 3.24.0-1
- 3.26.0-1
- 3.27.0-1
- 3.27.1-1
- 3.28.0-1
- 3.30.0-1
- Intervalos de versiones afectados
- ECOSYSTEM: < 3.31.0-1
Actualiza a 3.31.0-1
php-twig Ubuntu Pro 20.04 LTS
- Versiones
- 2.11.3-2
- 2.12.1-1
- 2.12.2-1
- 2.12.3-1
- 2.12.5-1
- 2.12.5-1ubuntu0.1~esm1
Todas las versiones (7)
- 2.12.5-1ubuntu0.1~esm2
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
php-twig Ubuntu Pro 22.04 LTS
- Versiones
- 3.3.2-1ubuntu3
- 3.3.4-1
- 3.3.6-1
- 3.3.7-1
- 3.3.8-2ubuntu4
- 3.3.8-2ubuntu4+esm1
Todas las versiones (7)
- 3.3.8-2ubuntu4+esm2
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
php-twig Ubuntu Pro 24.04 LTS
- Versiones
- 3.7.0-1
- 3.7.1-1
- 3.8.0-2
- 3.8.0-2ubuntu0.1~esm1
- 3.8.0-2ubuntu1
- 3.8.0-2ubuntu1+esm1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
php-twig Ubuntu 26.10
- Versiones
- 3.23.0-2build7
- 3.27.1-1
- 3.28.0-1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
php-twig Ubuntu Pro 26.04 LTS
- Versiones
- 3.20.0-2ubuntu1
- 3.23.0-2build5
- 3.23.0-2build7
- 3.23.0-2ubuntu0.1~esm1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada