CVEfocus › CVE database › CVE-2026-106444

CVE-2026-106444Handlebars: JavaScript Injection via Unsafe Inline Embedding of Precompiled Templates

CVSS 4.7 MediumEPSS 0.3% (higher than 15% of CVEs)Published 2026-10-06Updated 2026-10-06Assigner: GitHub_M

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.

CWE-116

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
6Fix pending
3Under investigation
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-handlebarsFix pendingUBUNTU-CVE-2026-106444
Ubuntu 26.04node-handlebarsUnder investigationUBUNTU-CVE-2026-106444
Ubuntu 24.04node-handlebarsUnder investigationUBUNTU-CVE-2026-106444
Ubuntu 24.04ruby-handlebars-assetsNot affected
vulnerable_code_not_present
UBUNTU-CVE-2026-106444
Ubuntu 22.04node-handlebarsUnder investigationUBUNTU-CVE-2026-106444
Ubuntu 22.04ruby-handlebars-assetsNot affected
vulnerable_code_not_present
Ubuntu 20.04node-handlebarsFix pendingUBUNTU-CVE-2026-106444
Ubuntu 18.04node-handlebarsFix pendingUBUNTU-CVE-2026-106444
Ubuntu 16.04ruby-handlebars-assetsFix pendingUBUNTU-CVE-2026-106444
Debian 14node-handlebarsFixed3:4.7.10-1DEBIAN-CVE-2026-106444
Debian 13node-handlebarsFix pendingDEBIAN-CVE-2026-106444
Debian 12node-handlebarsFix pendingDEBIAN-CVE-2026-106444
npm libraryhandlebarsFixed4.7.10GHSA-xw65-4hp5-5hc7

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.