CVE-2026-106446: Handlebars: JavaScript Injection via AST Type Confusion in compile (Program.blockParams)
Vulnerability summary
CVE-2026-106446 is a critical (CVSS 9.8) Improper Control of Generation of Code vulnerability in handlebars-lang handlebars.js. EPSS estimates a 0.90% chance of exploitation in the next 30 days, higher than 61% of scored vulnerabilities.
Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 06-10-2026PublishedVulnerability first disclosed.
- 07-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · NpmEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.90%
Chance of exploitation in the next 30 days
Percentile
61%
Versus all other CVEs
30-day change
Increase +0.12 pp
From 0.79% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-94Improper Control of Generation of CodeThe product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
- CWE-843Access of Resource Using Incompatible TypeThe product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard39 products
- eco-jessAll versions (No fix recorded) | < 2026.10.28.40737702110001-r0
- gitlab-rails-ce-18.10All versions (No fix recorded)
- gitlab-rails-ce-18.11All versions (No fix recorded) | < 18.11.13-r0
- gitlab-rails-ce-18.8All versions (No fix recorded)
- gitlab-rails-ce-18.9All versions (No fix recorded)
Wolfi8 products
- lernaAll versions (No fix recorded) | < 10.0.1-r10
- nextcloud-server-33All versions (No fix recorded) | < 33.0.9-r7
- opensearch-dashboards-3All versions (No fix recorded) | < 3.8.0-r13
- prismAll versions (No fix recorded) | < 5.16.0-r16
- rancher-api-ui< 1.2.3-r15
Ubuntu2 products
- node-handlebarsAll versions (No fix recorded)
- ruby-handlebars-assetsAll versions (No fix recorded)
Debian1 product
- node-handlebarsAll versions (No fix recorded) | < 3:4.7.10-1
Handlebars-lang1 product
- handlebars.js≥ 4.0.0, < 4.7.10
Npm1 product
- handlebars≥ 4.0.0, < 4.7.10
6 vendors · 52 products
References
10 links- github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-8r5x-fm3f-whwjX Refsource CONFIRMREPORTAdvisoryWEB
- github.com/handlebars-lang/handlebars.js/commit/703fdcc5fd6cc8d1cc0c33cc19de40c467c4b8d2X Refsource MISCFIXWEB