Vulnerability library
Security checkJanuary 12, 2023

Regular Expression Denial of Service in slug

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

Medium severitynpmslug

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Affected versions of slug are vulnerable to a regular expression denial of service when parsing untrusted user input.

The issue is low severity, as it takes 50,000 characters to cause the event loop to block for 2 seconds,

About 50k characters can block the event loop for 2 seconds.

Recommendation

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

  • Affected version(s): <= 0.9.1
  • Patched version(s): 0.9.2

References

Could your website be exposed too?

SmartScanner can check your website for Regular Expression Denial of Service in slug and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 12, 2023