目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-133771— Missing autoescaping for a variable named like a macro import alias of another scope

一分钟漏洞结论

影响对象
Twig twig/twig
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

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 ano

CVSS 2.3 · Low
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-133771 基础信息

漏洞信息

Shenlong is analyzing...


对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Missing autoescaping for a variable named like a macro import alias of another scope
来源: CVE Program / CVE List V5
Vulnerability Description
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.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
来源: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
Twig twig/twig 0 ~ 3.31.0 -

二、漏洞 CVE-2026-133771 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-133771 的情报信息

请登录查看更多情报信息。

CVE-2026-133771 其他参考 (3)

同批安全公告 · Twig · 2026-11-24 · 共 11 条

CVE-2026-133763 5.3 MEDIUM Sandbox `__toString()` policy bypass via the `is true` test
CVE-2026-133768 5.3 MEDIUM Sandbox property allow-list bypass via the `join` filter on non-iterable objects
CVE-2026-133767 5.3 MEDIUM Sandbox allow-list and `__toString()` bypass via a dynamic `embed` parent expression
CVE-2026-133765 5.3 MEDIUM Sandbox `__toString()` policy bypass via assignment and destructuring expressions
CVE-2026-133764 2.3 LOW Sandbox `__toString()` policy bypass via the input of custom tests
CVE-2026-133772 2.3 LOW Sandbox Tag Allow-List Bypass via the Branch of a `guard` Tag That Isn't Selected
CVE-2026-133769 2.3 LOW Sandbox property allow-list bypass via `html_cva()` variant values
CVE-2026-133773 2.3 LOW Unbounded Converter Memoisation in twig/markdown-extra Keyed on Template-Controlled Option
CVE-2026-133766 2.3 LOW Sandbox `__toString()` policy bypass via spread arguments
CVE-2026-133770 2.1 LOW Sandboxed templates can rewrite application-owned `Markup` objects through their construct

IV. Related Vulnerabilities