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

CVE-2026-106445: Handlebars templates may execute attacker-controlled JavaScript

CVE-2026-106445 · published 3 days ago
Summary

Versions of Handlebars from 4.0.0 to 4.7.9 allow a specially crafted template to bypass safety checks and run arbitrary JavaScript on the server. This can let an attacker execute code with the same rights as your application. Upgrade Handlebars to version 4.7.10 or later to stop the issue.

What to do
  • Update handlebars to version 4.7.10.
Affected software
Ecosystem VendorProductAffected versions
– handlebars-lang handlebars.js >= 4.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
Fix: upgrade to 4.7.10
Original advisory text
Handlebars: JavaScript Injection via Own Property Check Bypass
Handlebars provides the power necessary to let users build semantic templates. From 4.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
Updated9 Oct 2026
First seen6 Oct 2026
Track software like this
Free during beta