Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-106446

Handlebars: JavaScript Injection via AST Type Confusion in compile (Program.blockParams)
Back to all
CVE

CVE-2026-106446

Handlebars: 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.

Package Versions Affected

Package Version
patch Availability

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.8
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
-

Related Resources

No items found.

References

https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.10, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/106xxx/CVE-2026-106446.json, https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-8r5x-fm3f-whwj, https://nvd.nist.gov/vuln/detail/CVE-2026-106446, https://github.com/handlebars-lang/handlebars.js/commit/703fdcc5fd6cc8d1cc0c33cc19de40c467c4b8d2, https://github.com/handlebars-lang/handlebars.js/pull/2185

Severity

9.8

CVSS Score
0
10

Basic Information

Base CVSS
9.8
EPSS Probability
0.00786%
EPSS Percentile
0.56181%
Introduced Version
bff5fab8f9d42e21950be00dcf1cedf4dc1a565b,0
Fix Available
703fdcc5fd6cc8d1cc0c33cc19de40c467c4b8d2,2026.10.28.40754326399001-r0,18.11.13-r0,0,8.19.23-r3,9.4.7-r8,9.5.4-r7,4.56.0-r0,4.49.0-r5,10.0.1-r10,0.8.8-r2,33.0.9-r7,2.19.6-r28,2.19.6-r14,3.8.0-r13,3.8.0-r8,7.11.0-r2,5.16.0-r16,1.2.3-r15,44.133.0-r5,5.6.0-r20,5.6.0-r19,4.0.1-r48,6.10.5-r4,4.14.8-r9

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading