Intel

AIKIDO-2026-258160

handlebars is vulnerable to Remote Code Execution (RCE)

Remote Code Execution (RCE)CVE-2026-106445 Published 6 days ago

92

Critical Risk

This Affects:

JShandlebars
4.0.0 - 4.7.9
Fixed in 4.7.10
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.

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.

Background info

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

How to fix this

Upgrade the handlebars library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform