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

Handlebars templates may run attacker code on server

published 10 days ago
Summary

Versions of Handlebars from 3.0.0 through 4.7.9 let a crafted template execute arbitrary JavaScript when the setting allowProtoMethodsByDefault is turned on. This can let an attacker run code with the same rights as your application. Upgrade Handlebars to version 4.7.10 (or later) and disable the allowProtoMethodsByDefault option in the listed Docker images.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
Ecosystem VendorProductAffected versions
Docker Hardened Images:Alpine:3.24 docker hardened images jupyterhub-k8s-singleuser-sample-fips All versions
Docker Hardened Images:Alpine:3.24 docker hardened images postman-mcp All versions
Docker Hardened Images:Debian:13 docker hardened images datahub-ingestion All versions
Docker Hardened Images:Debian:13 docker hardened images jupyterhub-k8s-singleuser-sample-fips All versions
Docker Hardened Images:Debian:13 docker hardened images jupyterhub-k8s-singleuser-sample All versions
Docker Hardened Images:Debian:13 docker hardened images postman-mcp All versions
Docker Hardened Images:Debian:13 docker hardened images superset All versions
Original advisory text
Handlebars provides the power necessary to let users build semantic templates. From 3.0.0 until 4.7.10, Handlebars…
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 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker full control (estimated)
Severity
9.9 Critical
Timeline
Published12 Nov 2026
Updated16 Nov 2026
First seen16 Nov 2026
Sources
Track software like this
Free during beta