Quick answers
- Is CVE-2026-106444 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-106444 being exploited in the wild.
- How severe is CVE-2026-106444?
- Medium severity, with a CVSS score of 4.7, published 6 October 2026.
- Which products and versions are affected?
- Handlebars.js 4.0.0 to 4.7.9; handlebars (npm) >= 4.0.0, <= 4.7.9, SEMVER:introduced=4.0.0,fixed=4.7.10.
- Is there a fix for CVE-2026-106444?
- Yes. handlebars (npm): upgrade to 4.7.10 or later. Until then: Do not precompile untrusted template text. If precompiling user-supplied templates is necessary, serve the generated code as an external JavaScript file rather than inlining it in an HTML script element. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-106444 attacked?
- It is attacked over the network.
- Am I affected by CVE-2026-106444?
- Check whether you run Handlebars.js or handlebars (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- handlebars (npm): upgrade to 4.7.10 or later
npm install handlebars@4.7.10
Do not precompile untrusted template text. If precompiling user-supplied templates is necessary, serve the generated code as an external JavaScript file rather than inlining it in an HTML script element.
Technical details
The vulnerability exists in the precompile() function which uses quotedString() to emit static template text into generated JavaScript without properly escaping HTML script delimiters. An attacker can craft template text containing "</script>" sequences that break out of the enclosing script element and execute arbitrary code. The attack requires that an application precompiles attacker-controlled templates and embeds the generated source directly in an inline script element; server-side rendering and externally-served precompiled templates are not affected.
Affected products
- Handlebars Handlebars.js 4.0.0 to 4.7.9
Identifiers
- CVE-2026-106444
- GHSA-xw65-4hp5-5hc7
Timeline
- 2026-10-06: disclosed