CVE-2026-106446 Handlebars: JavaScript Injection via AST Type Confusion in compile (Program.blockParams)
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
52 packages: 2 fixed, 49 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux python-nbdime(Azure Linux 4.0) | All versions | No fix listed | No fix yet |
| debian/node-handlebars(Debian 12) | = 3:4.7.7+~4.1.0-1; = 3:4.7.9-1; = 3:4.7.9-2; = 3:4.7.9-3 +5 more | No fix listed | No fix yet |
| debian/node-handlebars(Debian 13) | = 3:4.7.7+~4.1.0-1; = 3:4.7.9-1; = 3:4.7.9-2; = 3:4.7.9-3 +5 more | No fix listed | No fix yet |
| redhat/amq-broker-maven-repository.zip(Red Hat amq_broker 7) | All versions | No fix listed | No fix yet |
| redhat/cockpit(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/cockpit-appstream(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/cryostat/cryostat-openshift-console-plugin-rhel9:4.2.0-19(Red Hat cryostat 4 el9) | All versions | No fix listed | No fix yet |
| redhat/devspaces/dashboard-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/mozjs60(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/multicluster-engine/console-mce-rhel9:1792886718(Red Hat multicluster_engine 2.8 el9) | All versions | No fix listed | No fix yet |
| redhat/multicluster-engine/console-mce-rhel9:1793640464(Red Hat multicluster_engine 2.11 el9) | All versions | No fix listed | No fix yet |
| redhat/multicluster-engine/console-mce-rhel9:1793640469(Red Hat multicluster_engine 2.9 el9) | All versions | No fix listed | No fix yet |
| redhat/multicluster-engine/console-mce-rhel9:1793642566(Red Hat multicluster_engine 2.10 el9) | All versions | No fix listed | No fix yet |
| redhat/multicluster-engine/console-mce-rhel9:1793731292(Red Hat multicluster_engine 2.17 el9) | All versions | No fix listed | No fix yet |
| redhat/rhacm2/console-rhel9:1792883111(Red Hat acm 2.13 el9) | All versions | No fix listed | No fix yet |
| redhat/rhacm2/console-rhel9:1793640457(Red Hat acm 2.14 el9) | All versions | No fix listed | No fix yet |
| redhat/rhacm2/console-rhel9:1793640474(Red Hat acm 2.15 el9) | All versions | No fix listed | No fix yet |
| redhat/rhacm2/console-rhel9:1793640486(Red Hat acm 2.16 el9) | All versions | No fix listed | No fix yet |
| redhat/rhacm2/console-rhel9:1793731526(Red Hat acm 2.17 el9) | All versions | No fix listed | No fix yet |
| redhat/rhaf-hawtio-maven-repository.zip(Red Hat apache_camel_hawtio 4) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-core-bff-rhel9:1793761673(Red Hat openshift_ai 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-dashboard-operator-rhel9:1793757463(Red Hat openshift_ai 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-dashboard-rhel9:1793001801(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-dashboard-rhel9:1793715860(Red Hat openshift_ai 2.25 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-dashboard-rhel9:1793758906(Red Hat openshift_ai 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-agent-ops-rhel9:1793758732(Red Hat openshift_ai 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-automl-rhel9:1793001841(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-automl-rhel9:1793758836(Red Hat openshift_ai 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-autorag-rhel9:1793001850(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-mod-arch-autorag-rhel9:1793757264(Red Hat openshift_ai 3.5 el9) | All versions | No fix listed | No fix yet |
… and 22 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| handlebars-lang handlebars.js | = >= 4.0.0, < 4.7.10 | No fix listed |
| debian/node-handlebars(Debian:12) | All versions | No fix listed |
| debian/node-handlebars(Debian:12) | = 3:4.7.10-1 | No fix listed |
| debian/node-handlebars(Debian:12) | = 3:4.7.7+~4.1.0-1 | No fix listed |
| debian/node-handlebars(Debian:12) | = 3:4.7.9-1 | No fix listed |
| debian/node-handlebars(Debian:12) | = 3:4.7.9-2 | No fix listed |
| debian/node-handlebars(Debian:12) | = 3:4.7.9-3 | No fix listed |
| debian/node-handlebars(Debian:12) | = 3:4.7.9-4 | No fix listed |
| debian/node-handlebars(Debian:12) | = 3:4.7.9-5 | No fix listed |
| debian/node-handlebars(Debian:12) | = 3:4.7.9-6 | No fix listed |
| debian/node-handlebars(Debian:13) | All versions | No fix listed |
| debian/node-handlebars(Debian:13) | = 3:4.7.10-1 | No fix listed |
| debian/node-handlebars(Debian:13) | = 3:4.7.7+~4.1.0-1 | No fix listed |
| debian/node-handlebars(Debian:13) | = 3:4.7.9-1 | No fix listed |
| debian/node-handlebars(Debian:13) | = 3:4.7.9-2 | No fix listed |
| debian/node-handlebars(Debian:13) | = 3:4.7.9-3 | No fix listed |
| debian/node-handlebars(Debian:13) | = 3:4.7.9-4 | No fix listed |
| debian/node-handlebars(Debian:13) | = 3:4.7.9-5 | No fix listed |
| debian/node-handlebars(Debian:13) | = 3:4.7.9-6 | No fix listed |
| debian/node-handlebars(Debian:14) | < 3:4.7.10-1 | 3:4.7.10-1 |
| debian/node-handlebars(Debian:14) | = 3:4.7.7+~4.1.0-1 | No fix listed |
| debian/node-handlebars(Debian:14) | = 3:4.7.9-1 | No fix listed |
| debian/node-handlebars(Debian:14) | = 3:4.7.9-2 | No fix listed |
| debian/node-handlebars(Debian:14) | = 3:4.7.9-3 | No fix listed |
| debian/node-handlebars(Debian:14) | = 3:4.7.9-4 | No fix listed |
Show 51 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/node-handlebars(Debian:14) | = 3:4.7.9-5 | No fix listed |
| debian/node-handlebars(Debian:14) | = 3:4.7.9-6 | No fix listed |
| npm handlebars(npm) | >= 4.0.0, <= 4.7.9 | No fix listed |
| ubuntu/node-handlebars(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/node-handlebars(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-handlebars(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-handlebars(Ubuntu:26.10) | All versions | No fix listed |
| npm handlebars(npm) | >= 4.0.0, < 4.7.10 | 4.7.10 |
| redhat/cryostat/cryostat-openshift-console-plugin-rhel9:4.2.0-19(Red Hat:cryostat:4::el9) | All versions | No fix listed |
| redhat/multicluster-engine/console-mce-rhel9:1793642566(Red Hat:multicluster_engine:2.10::el9) | All versions | No fix listed |
| redhat/multicluster-engine/console-mce-rhel9:1793640464(Red Hat:multicluster_engine:2.11::el9) | All versions | No fix listed |
| redhat/multicluster-engine/console-mce-rhel9:1793731292(Red Hat:multicluster_engine:2.17::el9) | All versions | No fix listed |
| redhat/multicluster-engine/console-mce-rhel9:1792886718(Red Hat:multicluster_engine:2.8::el9) | All versions | No fix listed |
| redhat/multicluster-engine/console-mce-rhel9:1793640469(Red Hat:multicluster_engine:2.9::el9) | All versions | No fix listed |
| redhat/rhacm2/console-rhel9:1792883111(Red Hat:acm:2.13::el9) | All versions | No fix listed |
| redhat/rhacm2/console-rhel9:1793640457(Red Hat:acm:2.14::el9) | All versions | No fix listed |
| redhat/rhacm2/console-rhel9:1793640474(Red Hat:acm:2.15::el9) | All versions | No fix listed |
| redhat/rhacm2/console-rhel9:1793640486(Red Hat:acm:2.16::el9) | All versions | No fix listed |
| redhat/rhacm2/console-rhel9:1793731526(Red Hat:acm:2.17::el9) | All versions | No fix listed |
| redhat/rhoai/odh-dashboard-rhel9:1793715860(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-model-registry-rhel9:1793711747(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-dashboard-rhel9:1793001801(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-automl-rhel9:1793001841(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-autorag-rhel9:1793001850(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-eval-hub-rhel9:1793001842(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-gen-ai-rhel9:1793001896(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-maas-rhel9:1793001859(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-mlflow-rhel9:1793001851(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-model-registry-rhel9:1793001827(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-core-bff-rhel9:1793761673(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhoai/odh-dashboard-operator-rhel9:1793757463(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhoai/odh-dashboard-rhel9:1793758906(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-agent-ops-rhel9:1793758732(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-automl-rhel9:1793758836(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-autorag-rhel9:1793757264(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-eval-hub-rhel9:1793758686(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-gen-ai-rhel9:1793759162(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-maas-rhel9:1793757908(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-mlflow-rhel9:1793758359(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-model-registry-rhel9:1793763697(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/workload-availability/node-healthcheck-must-gather-rhel9(Red Hat:workload_availability_nhc:0) | All versions | No fix listed |
| redhat/workload-availability/node-healthcheck-operator-bundle(Red Hat:workload_availability_nhc:0) | All versions | No fix listed |
| redhat/workload-availability/node-healthcheck-rhel9-operator(Red Hat:workload_availability_nhc:0) | All versions | No fix listed |
| redhat/workload-availability/node-remediation-console-rhel8(Red Hat:workload_availability_nhc:0) | All versions | No fix listed |
| redhat/amq-broker-maven-repository.zip(Red Hat:amq_broker:7) | All versions | No fix listed |
| redhat/rhaf-hawtio-maven-repository.zip(Red Hat:apache_camel_hawtio:4) | All versions | No fix listed |
| redhat/cockpit(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/cockpit-appstream(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/mozjs60(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/devspaces/dashboard-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| azure linux python-nbdime(Azure Linux:4.0) | All versions | No fix listed |
References
- https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-8r5x-fm3f-whwj exploit vendor-advisory
- https://github.com/handlebars-lang/handlebars.js/pull/2185 patch
- https://github.com/handlebars-lang/handlebars.js/commit/703fdcc5fd6cc8d1cc0c33cc19de40c467c4b8d2 patch
- https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.10
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:95360 patch vendor-advisory
- RHSA-2026:92303 patch vendor-advisory
- RHSA-2026:92307 patch vendor-advisory
- RHSA-2026:92510 patch vendor-advisory
- Red Hat Bugzilla 2547120 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- Debian Security Tracker CVE-2026-106446 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- RHSA-2026:99960 patch vendor-advisory
- RHSA-2026:95712 patch vendor-advisory
- RHSA-2026:96629 patch vendor-advisory
- RHSA-2026:99958 patch vendor-advisory
- RHSA-2026:99963 patch vendor-advisory
- RHSA-2026:99964 patch vendor-advisory
- RHSA-2026:99956 patch vendor-advisory
- RHSA-2026:95730 patch vendor-advisory
- RHSA-2026:95872 patch vendor-advisory
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- RHSA-2026:100126 patch vendor-advisory
- github.com product
- RHSA-2026:100634 patch vendor-advisory
- ENISA EUVD EUVD-2026-93969 third-party-advisory