CVE-2026-106444: Handlebars: JavaScript Injection via Unsafe Inline Embedding of Precompiled Templates
Vulnerability summary
CVE-2026-106444 is a medium (CVSS 4.7) Improper Encoding or Escaping of Output vulnerability in handlebars-lang handlebars.js. EPSS estimates a 0.33% chance of exploitation in the next 30 days, higher than 28.6% of scored vulnerabilities.
Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 06-10-2026PublishedVulnerability first disclosed.
- 06-10-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · WolfiEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · NpmEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · ChainguardEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- NVDNIST4.7MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.33%
Chance of exploitation in the next 30 days
Percentile
29%
Versus all other CVEs
30-day change
Increase +0.04 pp
From 0.29% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard39 products
- eco-jessAll versions (No fix recorded) | < 2026.10.28.40737702110001-r0
- gitlab-rails-ce-18.10All versions (No fix recorded)
- gitlab-rails-ce-18.11All versions (No fix recorded) | < 18.11.13-r0
- gitlab-rails-ce-18.8All versions (No fix recorded)
- gitlab-rails-ce-18.9All versions (No fix recorded)
Wolfi8 products
- lernaAll versions (No fix recorded) | < 10.0.1-r10
- nextcloud-server-33All versions (No fix recorded) | < 33.0.9-r7
- opensearch-dashboards-3All versions (No fix recorded) | < 3.8.0-r13
- prismAll versions (No fix recorded) | < 5.16.0-r16
- rancher-api-ui< 1.2.3-r15
Ubuntu2 products
- node-handlebarsAll versions (No fix recorded)
- ruby-handlebars-assetsAll versions (No fix recorded)
Debian1 product
- node-handlebarsAll versions (No fix recorded) | < 3:4.7.10-1
Handlebars-lang1 product
- handlebars.js≥ 4.0.0, < 4.7.10
Npm1 product
- handlebars≥ 4.0.0, < 4.7.10
6 vendors · 52 products
References
10 links- github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-xw65-4hp5-5hc7X Refsource CONFIRMREPORTAdvisoryWEB
- github.com/handlebars-lang/handlebars.js/commit/609d1b11c833c9a3e00f56f2f34d22f425446725X Refsource MISCFIXWEB