cve.bz

CVE-2026-106446 handlebars-lang handlebars.js: Code Injection

9.8 criticalEPSS 0.8%Fix available

Critical (9.8) in handlebars-lang handlebars.js. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in handlebars 4.7.10.

On this page
Handlebars provides the power necessary to let users build semantic templates. From 4.0.0 until 4.7.10, Handlebars.compile() and Handlebars.precompile() accept pre-parsed AST objects while validating only selected PathExpression, NumberLiteral, and BooleanLiteral values. This issue bypasses the AST validation introduced in version 4.7.9 for CVE-2026-33937. An attacker who can supply an object instead of a template string can place JavaScript expressions in unchecked values such as Program.blockParams.length, a non-PathExpression parameter depth, a non-string StringLiteral.value, or a non-string PathExpression.original. The compiler emits those values into generated JavaScript, causing code execution in the server process when compile output renders or wherever precompile output is loaded. Applications that pass only template strings are not affected. This issue is fixed in version 4.7.10.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2026-10-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-94 Improper Control of Generation of Code (Code Injection)
CWE-843 Access of Resource Using Incompatible Type (Type Confusion)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-106446 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-106446?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-106446?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-106446 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
handlebars-lang handlebars.js>= 4.0.0, < 4.7.10

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8r5x-fm3f-whwjnpmhandlebars>=4.0.0 <4.7.104.7.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13node-handlebarsno fix listedDEBIAN-CVE-2026-106446
Debian14node-handlebars3:4.7.10-1DEBIAN-CVE-2026-106446
Ubuntu16.04:LTSruby-handlebars-assetsno fix listedUBUNTU-CVE-2026-106446
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 3 morenode-handlebarsno fix listedUBUNTU-CVE-2026-106446

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw has an Important impact. Exploitation requires an application to pass a non-string object (for example, a JSON-deserialized value) to Handlebars.compile() or Handlebars.precompile(). Applications that only pass template strings are not affected. When that unsafe calling pattern is present, injected JavaScript can run with the privileges of the Node.js process. The issue is not Critical for Red Hat scoring because successful exploitation depends on that non-default API usage condition (AC:H), not on typical string-template pipelines alone.

Red Hat's mitigation

Upgrade to Handlebars 4.7.10 or later. Ensure only strings are passed to Handlebars.compile() and Handlebars.precompile(); reject non-string inputs. If templates are precompiled at build time, prefer the runtime-only build (handlebars/runtime) so compile() is unavailable on the server.

ProductPackageStateAdvisory
Cryostat 4 on RHEL 9cryostat/cryostat-openshift-console-plugin-rhel9:4.2.0-19Fixed 2026-11-04RHSA-2026:95360
multicluster engine for Kubernetes 2.10multicluster-engine/console-mce-rhel9:1793642566Fixed 2026-11-12RHSA-2026:99960
multicluster engine for Kubernetes 2.11multicluster-engine/console-mce-rhel9:1793640464Fixed 2026-11-13RHSA-2026:100126
multicluster engine for Kubernetes 2.17multicluster-engine/console-mce-rhel9:1793731292Fixed 2026-11-05RHSA-2026:95712
multicluster engine for Kubernetes 2.17multicluster-engine/console-mce-rhel9:1793731292Fixed 2026-11-09RHSA-2026:96629
multicluster engine for Kubernetes 2.8multicluster-engine/console-mce-rhel9:1792886718Fixed 2026-10-29RHSA-2026:92303
multicluster engine for Kubernetes 2.9multicluster-engine/console-mce-rhel9:1793640469Fixed 2026-11-12RHSA-2026:99958
Red Hat Advanced Cluster Management for Kubernetes 2.13rhacm2/console-rhel9:1792883111Fixed 2026-10-29RHSA-2026:92307
Red Hat Advanced Cluster Management for Kubernetes 2.14rhacm2/console-rhel9:1793640457Fixed 2026-11-13RHSA-2026:99963
Red Hat Advanced Cluster Management for Kubernetes 2.15rhacm2/console-rhel9:1793640474Fixed 2026-11-13RHSA-2026:99964
Node HealthCheck Operatorworkload-availability/node-healthcheck-must-gather-rhel9Affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-operator-bundleAffected
Node HealthCheck Operatorworkload-availability/node-healthcheck-rhel9-operatorAffected
Node HealthCheck Operatorworkload-availability/node-remediation-console-rhel8Affected
Red Hat AMQ Broker 7amq-broker-bin.zipNot affected
Red Hat AMQ Broker 7amq-broker-maven-repository.zipAffected
Red Hat build of Apache Camel for Spring Boot 4rhaf-camel-for-springboot-maven-repository.zipNot affected
Red Hat build of Apache Camel for Spring Boot 4rhaf-camel-maven-repository.zipNot affected
Red Hat build of Apache Camel for Spring Boot 4rhaf-camel-spring-boot-maven-repository.zipNot affected
Red Hat build of Apache Camel - HawtIO 4rhaf-hawtio-maven-repository.zipAffected
59 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-106446.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON