- Accueil
- Vulnérabilités
- CVE-2026-133770
CVE-2026-133770
Sandboxed templates can rewrite application-owned `Markup` objects through their constructor
Résumé
The sandbox allows every method of Twig\Markup objects, including their public constructor. A sandboxed template can therefore call __construct() on any Markup object that it reaches, and replace its content: {% do banner.__construct('<script>alert(1)</script>', 'UTF-8') %} A template gains nothing by rewriting its own output. The impact is on the Markup objects that come from the application and are also rendered elsewhere, like a global in a long-running worker. Their new content then ends up in trusted pages that aren't sandboxed. The sandbox no longer allows calling the constructor of Markup objects.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Twig (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| twig/twig | avant 3.31.1 (exclu) |
— | CNA (éditeur ou attributeur) |
Correctif
Non renseigné par l’éditeur.
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Références
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- CNA (éditeur ou attributeur)
- Vecteur CVSS
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N(CVSS 4.0, CNA:Symfony)- Faiblesse
- CWE-79 · Script intersite (XSS)