Handlebars 提供了强大的功能,使用户能够构建语义化模板。在版本 4.0.0 到 4.7.10 之间,Handlebars.precompile() 函数使用 lib/handlebars/compiler/code-gen.js 中的 quotedString() 方法,在生成的 JavaScript 代码中直接嵌入静态模板文本,而未对可能终止外部 HTML 元素的特殊序列进行转义。当应用程序预编译由攻击者控制的模板文本,并将生成的源代码直接嵌入到内联 元素中时,闭合的脚本结束标记可能会中断该元素,导致后
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| handlebars-lang | handlebars.js | >= 4.0.0, < 4.7.10 |
affected |
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| handlebars-lang | handlebars.js | >= 4.0.0, < 4.7.10 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POC| CVE-2026-106446 | 9.8 CRITICAL | Handlebars: JavaScript Injection via AST Type Confusion in compile (Program.blockParams) |
| CVE-2026-106445 | 9.2 CRITICAL | Handlebars: JavaScript Injection via Own Property Check Bypass |
No comments yet