CVE-2026-106446: Handlebars AST Type Confusion Enables Server-Side JavaScript Injection
What's the vulnerability?
CVE-2026-106446 is a critical (CVSS 9.8) JavaScript injection flaw in the Handlebars npm package, rooted in an AST type-confusion bug (CWE-94/CWE-843) in the compile() path. The flaw bypasses the earlier fix for CVE-2026-33937: an attacker who controls template source can craft a Handlebars template whose abstract syntax tree is misinterpreted during code generation, resulting in arbitrary JavaScript execution inside the server-side Node.js process. In practice, this means any service that compiles Handlebars templates from untrusted or user-influenced input can be turned into a remote code execution primitive on the backend.
Affected software
The vulnerability affects the handlebars npm package, versions >= 4.0.0, <= 4.7.9. Remediation is to upgrade to handlebars 4.7.10 or later.
Exploitation status
A public proof-of-concept is available via GHSA-8r5x-fm3f-whwj (status: PoC public). There is no evidence yet of in-the-wild exploitation or CISA KEV listing, but public PoC availability for a 9.8-severity Node.js RCE flaw means defenders should treat weaponization as a near-term certainty and prioritize patching and detection rollout accordingly.
How our detection catches it
We ship coverage across Microsoft Sentinel (KQL), Splunk (SPL), Elastic (EQL), IBM QRadar (AQL), Sumo Logic, Google Chronicle (YARA-L), and CrowdStrike (CQL). At a high level, the detection logic looks for the behavioral fingerprint of exploitation rather than a single signature: anomalous Handlebars template compilation events driven by untrusted or externally-sourced input, unexpected child-process spawning from Node.js services immediately following template rendering, and outbound network connections originating from template-rendering worker processes. We also flag the presence of vulnerable handlebars versions (>= 4.0.0, <= 4.7.9) in installed dependency inventories, so teams can identify exposure before an exploitation attempt ever occurs.
Learn more
For the full detection logic, sample events, investigation guidance, and atomic tests across all supported SIEM platforms, see the CVE-2026-106446 detection page.