Skip to main content
Public proof of conceptFix availableAwaiting NVD analysis

CVE-2026-106446

Handlebars: JavaScript Injection via AST Type Confusion in compile (Program.blockParams)

A public proof of concept exists; no exploitation attested.

  • Published2026-10-06
  • Fixed in4.7.10
  • WeaknessCWE-843 · CWE-94

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2026-10-0620:17CVE publishedNVD

Versions per branch

OSV
handlebars
BranchAffectedFixed in
4.x≥ 4.0.0, < 4.7.104.7.10

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • handlebars-lang handlebars.js
    Affected
    • = >= 4.0.0, < 4.7.10no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-10-06

Distribution builds and vendor advisories

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

  • @rootio/handlebarsRoot:npmall versions · fixed in 3.0.7-root.io.1
  • @rootio/handlebarsRoot:npmall versions · fixed in 3.0.3-root.io.1
  • @rootio/handlebarsRoot:npmall versions · fixed in 3.0.3-root.io.2
  • @rootio/handlebarsRoot:npmall versions · fixed in 3.0.7-root.io.2
  • @rootio/handlebarsRoot:npmall versions · fixed in 3.0.7-root.io.3
  • @rootio/handlebarsRoot:npmall versions · fixed in 3.0.8-root.io.1
  • @rootio/handlebarsRoot:npmall versions · fixed in 3.0.8-root.io.2
  • @rootio/handlebarsRoot:npmall versions · fixed in 4.7.7-root.io.4

71 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-106446 Red Hat Product Security126 products fixed · 18 known affected

    handlebars: Handlebars: JavaScript Injection via AST Type Confusion in compile (Program.blockParams)

    workload-availability/node-healthcheck-must-gather-rhel9 as a component of Node HealthCheck Operator · workload-availability/node-healthcheck-operator-bundle as a component of Node HealthCheck Operator · workload-availability/node-healthcheck-rhel9-operator as a component of Node HealthCheck Operator · +15 more

  • RHSA-2026:100634 Red Hat Product Security8 products fixed

    Red Hat Security Advisory: RHOAI 2.25.13 - Red Hat OpenShift AI

  • RHSA-2026:100126 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: multicluster engine for Kubernetes v2.11.8 security update

  • RHSA-2026:99964 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Advanced Cluster Management for Kubernetes v2.15.9 security update

  • RHSA-2026:99963 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Advanced Cluster Management for Kubernetes v2.14.7 security update

  • RHSA-2026:99960 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: multicluster engine for Kubernetes v2.10.8 security update

10 more advisories

Full record on NVD

Fix

  1. Update handlebars to 4.7.10
  2. Vendor fix Red Hat Product Security RHSA-2026:100634 · 8 productsFor Red Hat OpenShift AI 2.25.13 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this errata update: https://docs.redhat.com/en/documentation/red_hat_openshift_ai/
  3. Vendor fix Red Hat Product Security RHSA-2026:100126 · 4 productsFor multicluster engine for Kubernetes, see the following documentation for details on how to install the images: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.16/html/clusters/cluster_mce_overview#mce-install-intro
  4. Vendor fix Red Hat Product Security RHSA-2026:99964 · 4 productsBefore you apply this update, make sure all previously released errata that are relevant to your system are applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  5. Vendor fix Red Hat Product Security RHSA-2026:99960 · 4 productsFor multicluster engine for Kubernetes, see the following documentation for details on how to install the images: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.15/html/clusters/cluster_mce_overview#mce-install-intro
  6. Vendor fix Red Hat Product Security RHSA-2026:99958 · 4 productsFor multicluster engine for Kubernetes, see the following documentation for details on how to install the images: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.14/html/clusters/cluster_mce_overview#mce-install-intro
  7. Vendor fix Red Hat Product Security RHSA-2026:96629 · 4 productsFor multicluster engine for Kubernetes, see the following documentation for details on how to install the images: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/latest/html/clusters/cluster_mce_overview#mce-install-intro

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVE recordread 2026-10-23
  • CISA-ADPSSVC decisionpoc2026-10-07
  • CNACVSS 3.19.8known since 2026-10-23
  • CNAweakness (CWE)CWE-843, CWE-94known since 2026-10-23
  • FIRST EPSSEPSS score0.9 %2026-12-03
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryCritical2026-10-08

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2026-10-06
Last modified
2026-10-07
NVD status
Awaiting Analysis
GitHub advisory
GHSA-8r5x-fm3f-whwj

Frequently asked questions

What is CVE-2026-106446?

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.

Is CVE-2026-106446 actively exploited?

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

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

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

Running handlebars? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record