Vulnerability library
Security checkJanuary 27, 2023

modern-async's `forEachSeries` and `forEachLimit` functions do not limit the number of requests

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

High severitynpmmodern-async

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

This is a bug affecting two of the functions in this library: forEachSeries and forEachLimit. They should limit the concurrency of some actions but, in practice, they don’t. Any code calling these functions will be written thinking they would limit the concurrency but they won’t. This could lead to potential security issues in other projects.

Recommendation

Update the modern-async package to the latest compatible version. Followings are version details:

  • Affected version(s): < 1.0.4
  • Patched version(s): 1.0.4

References

Could your website be exposed too?

SmartScanner can check your website for modern-async's `forEachSeries` and `forEachLimit` functions do not limit the number of requests and gives you actionable findings to investigate.

Start a free scan

Related Issues

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