handlebars is vulnerable to Remote Code Execution (RCE)
92
CVE Score
Critical
Remote Code Execution (RCE)
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.
Upgrade the handlebars library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you render templates with allowProtoMethodsByDefault: true.
4.0.0 - 4.7.9
Fixed in 4.7.10handlebars is vulnerable to Remote Code Execution (RCE) in versions 4.0.0 - 4.7.9.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.