Answer in brief
CVE-2026-133771 records a Low severity (CVSS 2.3) vulnerability in Missing autoescaping for a variable named like a macro import alias of another scope. The current sources do not mark it as known exploited. The current feed maps Twig/twig/twig (generic). Check affected ranges and fixed versions before updating.
Analysis pending evidence review
HOL Guard separates source facts from reviewed analysis. See the methodology.
CVSS is 2.3. The current sources do not mark it as known exploited. Treat this as a source-backed prioritization signal, not a statement about your environment.
Analysis status
Analysis pending evidence review
Factual feed record only; HOL analysis is not approved for indexing. Read the methodology.
The current feed maps Twig/twig/twig (generic). Check affected ranges and fixed versions before updating.
| Package | Affected range | Fixed version |
|---|---|---|
| Twig/twig/twiggeneric | >=0 <3.31.0 | 3.31.0 |
Published upstream
Nov 24, 2026
Evidence: source:cvelist:source_dates:source-dates:recordSource modified
Nov 24, 2026
Evidence: source:cvelist:source_dates:source-dates:recordFirst seen by HOL
Nov 24, 2026
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.
Quoted source text, attributed separately from HOL analysis.