Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.9

CVE-2026-106445: Handlebars templates can run attacker code on server

CVE-2026-106445 · published 12 days ago
Summary

Versions of Handlebars from 3.0.0 through 4.7.9 let a specially crafted template execute any JavaScript on the server when a certain setting is turned on. This can let an attacker take control of the application’s privileges. Upgrade Handlebars to version 4.7.10 or later to stop this behavior.

What to do
  • Update handlebars to version 4.7.10.
  • Update debian node-handlebars to version 3:4.7.10-1.
  • Update handlebars to version 4.7.9-aikido.2.
  • Update rootio @rootio/handlebars to version 4.7.9-root.io.2.
Affected software
Ecosystem VendorProductAffected versions
– handlebars-lang handlebars.js >= 4.0.0, < 4.7.10
>= 3.0.0, < 4.7.10
Debian:12 debian node-handlebars All versions
Ubuntu:18.04:LTS canonical node-handlebars All versions
npm – handlebars >= 4.0.0, <= 4.7.9
>= 4.0.0, < 4.7.10
>= 3.0.0, <= 4.7.9
>= 3.0.0, < 4.7.10
Fix: upgrade to 4.7.10
Debian:14 debian node-handlebars < 3:4.7.10-1
Fix: upgrade to 3:4.7.10-1
Root:npm – handlebars < 4.7.9-aikido.2
Fix: upgrade to 4.7.9-aikido.2
Root:npm rootio @rootio/handlebars < 4.7.9-root.io.2
Fix: upgrade to 4.7.9-root.io.2
Original advisory text
CVE-2026-106445 in handlebars - Patched by Root
Handlebars provides the power necessary to let users build semantic templates. From 3.0.0 until 4.7.10, Handlebars lookupProperty returns Function.prototype.constructor before applying the prototype-access deny list because constructor is an own property of Function.prototype. When an attacker can render a controlled template with allowProtoMethodsByDefault enabled and an accessible function in the template context, the template can traverse from that function through its prototype to Function.prototype and then obtain the Function constructor through the own-property bypass. This permits attacker-controlled JavaScript to execute with the server application's privileges. This issue is fixed in version 4.7.10.
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically
  • Gives an attacker full control
Severity
9.9 Critical
Exploitation
<1% chance of attack within 30 days
Type
CWE-184Incomplete List of Disallowed Inputs
CWE-1289Improper Validation of Unsafe Equivalence in Input
Timeline
Published6 Oct 2026
Updated17 Oct 2026
First seen6 Oct 2026
Track software like this
Free during beta