Vulnerabilities/

Handlebars.js has JavaScript Injection in CLI Precompiler via Unescaped Names and Options

Severity:
High

Description

The Handlebars CLI precompiler (bin/handlebars / lib/precompiler.js) concatenates user-controlled strings — template file names and several CLI options — directly into the JavaScript it emits, without any escaping 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 30, 2026