CVE-2026-106446Handlebars: JavaScript Injection via AST Type Confusion in compile (Program.blockParams)
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.
What to do
Fixed builds are available from Debian, npm: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-handlebars | Fix pending | UBUNTU-CVE-2026-106446 | |
| Ubuntu 26.04 | node-handlebars | Under investigation | UBUNTU-CVE-2026-106446 | |
| Ubuntu 24.04 | node-handlebars | Fix pending | UBUNTU-CVE-2026-106446 | |
| Ubuntu 24.04 | ruby-handlebars-assets | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | node-handlebars | Fix pending | UBUNTU-CVE-2026-106446 | |
| Ubuntu 22.04 | ruby-handlebars-assets | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | node-handlebars | Fix pending | UBUNTU-CVE-2026-106446 | |
| Ubuntu 18.04 | node-handlebars | Fix pending | UBUNTU-CVE-2026-106446 | |
| Ubuntu 16.04 | ruby-handlebars-assets | Fix pending | UBUNTU-CVE-2026-106446 | |
| Debian 14 | node-handlebars | Fixed | 3:4.7.10-1 | DEBIAN-CVE-2026-106446 |
| Debian 13 | node-handlebars | Fix pending | DEBIAN-CVE-2026-106446 | |
| Debian 12 | node-handlebars | Fix pending | DEBIAN-CVE-2026-106446 | |
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | cargo | Not affected | ||
| Red Hat Enterprise Linux 10 | clippy | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-apphost-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-hostfxr-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-8.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-templates-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | firefox | Not affected | ||
| Red Hat Enterprise Linux 10 | goose | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 10 | libwayland-client | Not affected | ||
| Red Hat Enterprise Linux 10 | libwayland-cursor | Not affected | ||
| Red Hat Enterprise Linux 10 | libwayland-egl | Not affected | ||
| Red Hat Enterprise Linux 10 | libwayland-server | Not affected | ||
| Red Hat Enterprise Linux 10 | rust | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-analyzer | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-debugger-common | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-doc | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-gdb | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-lldb | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-src | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static-aarch64-unknown-none-softfloat | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static-wasm32-unknown-unknown | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static-wasm32-wasip1 | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static-x86_64-unknown-none | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-toolset | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-toolset-srpm-macros | Not affected | ||
| Red Hat Enterprise Linux 10 | rustfmt | Not affected | ||
| Red Hat Enterprise Linux 10 | thunderbird | Not affected | ||
| Red Hat Enterprise Linux 10 | wayland-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | cargo | Not affected | ||
| Red Hat Enterprise Linux 9 | clippy | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-host | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-8.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-templates-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | firefox | Not affected | ||
| Red Hat Enterprise Linux 9 | firefox-x11 | Not affected | ||
| Red Hat Enterprise Linux 9 | goose | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 9 | netstandard-targeting-pack-2.1 | Not affected | ||
| Red Hat Enterprise Linux 9 | rust | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-analysis | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-analyzer | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-debugger-common | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-gdb | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-lldb | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-src | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-std-static | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-unknown-unknown | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-wasi | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-wasip1 | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-toolset | Not affected | ||
| Red Hat Enterprise Linux 9 | rustfmt | Not affected | ||
| Red Hat Enterprise Linux 9 | thunderbird | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | cargo | Not affected | ||
| Red Hat Enterprise Linux 8 | cargo-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | clippy | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cockpit-bridge | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cockpit-dashboard | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cockpit-doc | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cockpit-machines | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cockpit-packagekit | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cockpit-pcp | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cockpit-storaged | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cockpit-system | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cockpit-ws | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | dotnet | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-apphost-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-host | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-hostfxr-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-8.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-templates-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Not affected | ||
| Red Hat Enterprise Linux 8 | mozjs60 | Not affected | ||
| Red Hat Enterprise Linux 8 | mozjs60-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | netstandard-targeting-pack-2.1 | Not affected | ||
| Red Hat Enterprise Linux 8 | rls | Not affected | ||
| Red Hat Enterprise Linux 8 | rust | Not affected | ||
| Red Hat Enterprise Linux 8 | rust-analysis | Not affected | ||
| Red Hat Enterprise Linux 8 | rust-analyzer | Not affected | ||
| Red Hat Enterprise Linux 8 | rust-debugger-common | Not affected | ||
| Red Hat Enterprise Linux 8 | rust-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rust-gdb | Not affected | ||
| Red Hat Enterprise Linux 8 | rust-lldb | Not affected | ||
| Red Hat Enterprise Linux 8 | rust-src | Not affected | ||
| Red Hat Enterprise Linux 8 | rust-std-static | Not affected | ||
| Red Hat Enterprise Linux 8 | rust-std-static-wasm32-unknown-unknown | Not affected | ||
| Red Hat Enterprise Linux 8 | rust-std-static-wasm32-wasi | Not affected | ||
| Red Hat Enterprise Linux 8 | rust-toolset | Not affected | ||
| Red Hat Enterprise Linux 8 | rustfmt | Not affected | ||
| Red Hat Enterprise Linux 8 | thunderbird | Not affected | ||
| Red Hat Enterprise Linux 7 | firefox | Not affected | ||
| npm library | handlebars | Fixed | 4.7.10 | GHSA-8r5x-fm3f-whwj |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- handlebars-lang handlebars.js: affected: >= 4.0.0, < 4.7.10
References
- https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-8r5x-fm3f-whwj
- https://github.com/handlebars-lang/handlebars.js/pull/2185
- https://github.com/handlebars-lang/handlebars.js/commit/703fdcc5fd6cc8d1cc0c33cc19de40c467c4b8d2
- https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.10
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.