Vulnerabilities/

Handlebars.js has JavaScript Injection via AST Type Confusion when passing an object as dynamic partial

Severity:
High

Description

A crafted object placed in the template context can bypass all conditional guards in resolvePartial() and cause invokePartial() to return undefined. The Handlebars runtime then treats the unresolved partial as a source that needs to be compiled, passing the crafted object to env.compile().

Recommendation

Update the handlebars package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
handlebars
Anything's wrong? Let us know Last updated on March 30, 2026