Skip to main content
MEDIUM

CVE-2026-106444

Handlebars: JavaScript Injection via Unsafe Inline Embedding of Precompiled Templates

CVSS v3

4.7

MEDIUM

EPSS Score

0.3 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

poc

SSVC status

Get an alert for each new CVE published for handlebars.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • handlebarsnpmfrom 4.0.0 · fixed in 4.7.10

Vendor advisories

  • CVE-2026-106444 Red Hat Product Security

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

Full record on NVD

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.

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
2026-10-06
Last Modified
2026-10-07

Frequently asked questions

What is CVE-2026-106444?

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.

Is CVE-2026-106444 actively exploited?

A proof-of-concept exploit exists for CVE-2026-106444, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2026-106444?

CVE-2026-106444 has a CVSS v3 base score of 4.7 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N.

Running handlebars? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month