Intel

AIKIDO-2026-258160

handlebars is vulnerable to Remote Code Execution (RCE)

CVE-2026-106445Published Oct 8, 2026
October 8, 2026

92

CVE Score

Critical

Remote Code Execution (RCE)

Are you affected? Scan for Free

TL;DR

lookupProperty in lib/handlebars/internal/proto-access.js returns a value as soon as Object.prototype.hasOwnProperty returns true, before the prototype method deny list runs. Because constructor is itself an own property of prototype objects, a template that reaches Function.prototype can retrieve Function and execute arbitrary JavaScript on the server. This applies to templates that use allowProtoMethodsByDefault: true and can reach any prototype object through an accessible function in the render context. The fix runs the deny list before returning an own property result.

How do I fix this?

Upgrade the handlebars library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you render templates with allowProtoMethodsByDefault: true.

Package

Versions

4.0.0 - 4.7.9

Fixed in 4.7.10

Background info

handlebars is vulnerable to Remote Code Execution (RCE) in versions 4.0.0 - 4.7.9.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea