Vulnerability library
Security checkMarch 27, 2026

Handlebars.js has JavaScript Injection via AST Type Confusion by tampering @partial-block

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmhandlebars

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The @partial-block special variable is stored in the template data context and is reachable and mutable from within a template via helpers that accept arbitrary objects.

Recommendation

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

  • Affected version(s): >= 4.0.0, <= 4.7.8
  • Patched version(s): 4.7.9

References

Could your website be exposed too?

SmartScanner can check your website for Handlebars.js has JavaScript Injection via AST Type Confusion by tampering @partial-block and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 27, 2026