Skip to content
Fencer Intel
medium 4.7

CVE-2026-106444 json

Handlebars: JavaScript Injection via Unsafe Inline Embedding of Precompiled Templates

published last mo. modified last mo. also EUVD-2026-93974 , GHSA-xw65-4hp5-5hc7

cvss
4.7
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 21%
public exploits
0
none known

Summary

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.

Patch / fix

  • npm handlebars 4.7.10
  • handlebarsjs handlebars 4.7.10
  • handlebars.js_project handlebars.js 4.7.10
  • node-handlebars Debian 14 3:4.7.10-1

debian advisories DEBIAN-CVE-2026-106444

Is CVE-2026-106444 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-106444 updated cvss 4.7

handlebars: Handlebars: Cross-Site Scripting via unescaped closing script tags in precompiled templates

  • Red Hat Hardened Images jaeger 2.20.0-0.11.hum1, yarnpkg 1.22.22-18.1.hum1, dotnet8.0 8.0.130-0.2.hum1, grafana13.1 13.1.7-0.1.hum1, grafana13.2 13.2.3-0.1.hum1, grafana12.4 12.4.12-0.3.hum1, +4 more
    not affected: component not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
last mo.

Exploit prediction

0.29% chance of exploitation in the next 30 days, higher than 21% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • github.com https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-xw65-4hp5-5hc7 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 4.7 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub 3.1 4.7 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
npm handlebars
>=4.0.0, <4.7.10
4.7.10

Affected products

  • handlebars-lang handlebars.js

Classification

Weakness
  • CWE-116 Improper Encoding or Escaping of Output

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.