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

目标: 1000 元 · 已筹: 1336

100%

CVE-2026-16231— Hbs 通过 registerAsyncHelper 输出转义绕过存在 XSS 漏洞

一分钟漏洞结论

影响对象
hbs hbs
利用判断
存在公开或 AI PoC,应优先验证
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

hbs 是一个封装了 Handlebars 的 Express 视图引擎。其 API 绕过了 Handlebars 的自动 HTML 转义机制:在第一次渲染过程中,异步助手(async helper)会返回一个不透明的占位符;此时双大括号表达式( )仅对该占位符进行转义。随后,在渲染阶段,hbs 会将该占位符替换为回调函数的原始返回值,且不进行任何转义。此行为存在于缓存渲染、非缓存渲染以及布局渲染等所有渲染路径中。 如果应用程序将攻击者可影响的数据(例如,来自数据库的用户提交内容)传入异步助手的回调函数,则可能导致

CVSS 8.1 · High
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
hbs vulnerable to XSS via registerAsyncHelper output-escaping bypass
来源: CVE Program / CVE List V5
Vulnerability Description
hbs is an Express view engine that wraps Handlebars. Its registerAsyncHelper API bypasses Handlebars' automatic HTML escaping: an async helper returns an opaque placeholder during the first render pass, so the double-brace expression escapes only the placeholder, and after rendering hbs substitutes the placeholder with the raw callback return value without escaping it, across the cached, uncached, and layout render paths. An application that passes attacker-influenced data, for example user-supplied content from a database, into an async helper callback can therefore have arbitrary HTML and JavaScript injected into the server-rendered page, resulting in stored or reflected cross-site scripting. Versions 2.1.0 through 4.2.1 are affected, and the issue is fixed in 4.3.0, which HTML-escapes async helper output. Applications that intentionally emit raw HTML from an async helper can opt in explicitly with hbs.SafeString. Users should upgrade to 4.3.0.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
hbs hbs 2.1.0 ~ 4.3.0 -

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

# POC 描述 源链接 神龙链接
AI 生成 POC 高级
Qwen3.6-35B-A3B · 3926 chars
Pro+ 专属包含:
漏洞复现靶场录像(真实沙箱构建 + 触发,独家)
漏洞原理深度分析
触发条件与影响面
完整可执行 POC 代码
利用链与缓解建议
POC 打包下载
每月 100+ 条 AI 生成额度

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

登录查看更多情报信息。

CVE-2026-16231 其他参考 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-16231

暂无评论


发表评论