Vulnerability
CVE-2026-106444
Handlebars provides the power necessary to let users build semantic templates. From 4.0.0 until 4.7.10, Handlebars.precompile() uses quotedString() in lib/handlebars/compiler/code-gen.js to emit static template text into generated JavaScript without escaping sequences that terminate an enclosing HTML script element. When an application precompiles attacker-controlled template text and embeds the generated source directly in an inline script element, a closing script delimiter can end the element and cause following attacker-controlled markup to be parsed and executed. Ordinary server-side rendering and precompiled templates served as external JavaScript files are not affected. This issue is fixed in version 4.7.10.
92 advisories report this vulnerability, across 6 ecosystems.
Advisories
- CGA-24qr-jcxv-wc7q
- CGA-258x-rj7q-6xhv
- CGA-2p2c-2884-6384
- CGA-2rw6-pw8q-6rc7
- CGA-2x34-3vgf-433v
- CGA-365w-49qf-jwv6
- CGA-3663-3m92-w9c8
- CGA-3g82-pjw4-f387
- CGA-3m22-5x93-6vj6
- CGA-3mwq-9qr6-p238
- CGA-3r2w-293r-867v
- CGA-47qq-569g-hggp
- CGA-4ph7-vx3q-h423
- CGA-4w35-jjjh-m39g
- CGA-52p6-h28h-wv63
- CGA-54gx-xr3f-v74c
- CGA-58q2-mcph-j4vw
- CGA-5gqc-gx3f-5vvf
- CGA-5xr5-r85f-jvqc
- CGA-6697-xmp8-q7w7
- CGA-6m95-9wjg-r656
- CGA-6pg5-5hhm-mx2w
- CGA-6qqj-2v8w-m777
- CGA-6rr4-rcfh-7mvm
- CGA-6w82-5w48-2288
- CGA-7mhq-q976-2cvp
- CGA-7p4p-c3rq-w5x2
- CGA-82rw-ff8v-7g5j
- CGA-875q-vjhj-q4vq
- CGA-8c95-w9r2-w28f
- CGA-8mm7-m46f-hf6h
- CGA-8rm3-xmhc-8ccc
- CGA-92vh-xmvw-36vg
- CGA-9hjg-3jw3-5pg5
- CGA-9hwc-v4w9-v7ff
- CGA-9q8f-pmgx-h3p5
- CGA-9vp3-4fh6-8jf9
- CGA-9xw7-77xq-qmr5
- CGA-cmcm-p9qr-cmm9
- CGA-cmqh-r2xh-9p7g
- CGA-crxp-4hfj-6gwh
- CGA-f22g-75qq-7x24
- CGA-ffc6-fq9v-mrq3
- CGA-g5hx-5xxf-hcp2
- CGA-g9q8-hm2w-28hf
- CGA-gcc2-qrfj-43xr
- CGA-h45p-3c76-p86f
- CGA-h4gv-wgw5-gvhx
- CGA-h65v-v84q-3jqc
- CGA-h8hv-xm95-f8x7
- CGA-hcv3-gf5w-h8w6
- CGA-hxpr-r4rj-qg2w
- CGA-j2rx-q8qf-fmmq
- CGA-jcg5-q44g-jjj6
- CGA-jfh5-jc4f-2m7r
- CGA-jmrp-cww9-wmf4
- CGA-jp82-m7vg-v879
- CGA-jwc3-pvj2-fxwx
- CGA-mgvr-9qr2-5phw
- CGA-mjqq-cfmg-7x9v
- CGA-mm8c-rf54-gfx7
- CGA-mr59-9qf5-mgxq
- CGA-mvx3-pq85-28ff
- CGA-p3f4-mpgf-fh3x
- CGA-p686-vj32-q43q
- CGA-pg4c-g92q-7xq8
- CGA-pjhv-597j-xpww
- CGA-pmgq-hpqc-mc2f
- CGA-q4m2-j6r4-xhw2
- CGA-q8gm-rj9f-3423
- CGA-qcqw-c2fj-qj4p
- CGA-qw7q-x8v2-m5vp
- CGA-r9r5-89m2-hmq9
- CGA-rvw6-9xfp-h66x
- CGA-v4mx-2m7c-mg35
- CGA-v82r-96hh-6pxm
- CGA-vq4c-g457-g355
- CGA-vvp6-pppx-x738
- CGA-w22x-6r4w-pr2j
- CGA-w57p-xv46-62v7
- CGA-wcwx-c8cp-q4fh
- CGA-wf76-4cpf-69x5
- CGA-wjm5-rc56-vm74
- CGA-wvcj-g6mc-x5fr
- CGA-x822-9r45-xmhv
- CGA-x8q3-gpr8-82w7
- CGA-xcgp-9grw-h282
- CGA-xwm9-7fm9-hmf8
-
DEBIAN-CVE-2026-106444
Handlebars provides the power necessary to let users build semantic templates. From 4.0.0 until 4.7.10, Handlebars.precompile() uses quotedString() in lib/handlebars/compiler/code-gen.js to emit static template text…
-
GHSA-xw65-4hp5-5hc7
Handlebars: JavaScript Injection via Unsafe Inline Embedding of Precompiled Templates
-
SUSEVEX-CVE-2026-106444
Handlebars provides the power necessary to let users build semantic templates. From 4.0.0 until 4.7.10, Handlebars.precompile() uses quotedString() in lib/handlebars/compiler/code-gen.js to emit static template text…
-
UBUNTU-CVE-2026-106444
Handlebars provides the power necessary to let users build semantic templates. From 4.0.0 until 4.7.10, Handlebars.precompile() uses quotedString() in lib/handlebars/compiler/code-gen.js to emit static template text…
References
- https://github.com/handlebars-lang/handlebars.js/commit/609d1b11c833c9a3e00f56f2f34d22f425446725
- https://github.com/handlebars-lang/handlebars.js/pull/2185
- https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.10
- https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-xw65-4hp5-5hc7