Vulnerability library
Security checkNovember 29, 2023

Regular Expression Denial of Service in 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 4.4.5 allows Regular Expression Denial of Service (ReDoS) because of eager matching. The parser may be forced into an endless loop while processing crafted templates. This may allow attackers to exhaust system resources.

Recommendation

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

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

References

Could your website be exposed too?

SmartScanner can check your website for Regular Expression Denial of Service in 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