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.
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
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?
Is CVE-2026-106444 actively exploited?
What is the CVSS score for CVE-2026-106444?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2021-23369same product
- CVE-2021-23383same product
- CVE-2019-20920same product
- CVE-2026-106446same productHandlebars: JavaScript Injection via AST Type Confusion in compile (Program.blockParams)
- CVE-2026-21589KEVsame week
- CVE-2026-105110same weekIskratel Innbox Unauthenticated Remote Code Execution via login.xgi CLI Parameter
- CVE-2026-93674same weekLangflow OSS is affected by multiple vulnerabilities
- CVE-2026-108576same weekTOZED X300 IPPingDiagnostics process_ping os command injection