Vulnerabilities/

Handlebars.js has JavaScript Injection via AST Type Confusion

Severity:
High

Description

Handlebars.compile() accepts a pre-parsed AST object in addition to a template string. The value field of a NumberLiteral AST node is emitted directly into the generated JavaScript without quoting or sanitization.

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 27, 2026