CVE-2026-106444: handlebars-lang handlebars.js Improper Encoding or Escaping of Output
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.29% chance of exploitation in the next 30 days, higher than 20.6% of scored vulnerabilities.
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.29%
Chance of exploitation in the next 30 days
Percentile
21%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard36 products
- eco-jessAll versions (No fix recorded)
- gitlab-rails-ce-18.11All versions (No fix recorded)
- gitlab-rails-ce-18.8All versions (No fix recorded)
- gitlab-rails-ce-18.9All versions (No fix recorded)
- gitlab-rails-ce-assets-fips-19.4All 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 · 49 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