Vulnerability library
Security checkMarch 25, 2024

Regular Expression Denial of Service in debug

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

Low severitynpmdebug

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 debug are vulnerable to regular expression denial of service when untrusted user input is passed into the o formatter.

As it takes 50,000 characters to block the event loop for 2 seconds, this issue is a low severity issue.

This was later re-introduced in version v3.2.0, and then repatched in versions 3.2.7 and 4.3.1.

Recommendation

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

  • Affected version(s): **>= 4.0.0, < 4.3.1 >= 3.2.0, < 3.2.7 >= 3.0.0, < 3.1.0 < 2.6.9**
  • Patched version(s): **4.3.1 3.2.7 3.1.0 2.6.9**

References

Could your website be exposed too?

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

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 25, 2024