Vulnerability library
Security checkNovember 29, 2023

Arbitrary Code Execution in Handlebars - handlebars

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

Handlebars before 3.0.8 and 4.x before 4.5.3 is vulnerable to Arbitrary Code Execution. The lookup helper fails to properly validate templates, allowing attackers to submit templates that execute arbitrary JavaScript.

Recommendation

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

  • Affected version(s): **>= 4.0.0, < 4.5.3 < 3.0.8**
  • Patched version(s): **4.5.3 3.0.8**

References

Could your website be exposed too?

SmartScanner can check your website for Arbitrary Code Execution in Handlebars - handlebars and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated November 29, 2023