{"id":"GHSA-3pcq-34w5-p4g2","summary":"modern-async's `forEachSeries` and `forEachLimit` functions do not limit the number of requests","details":"### Impact\n\nThis 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.\n\n### Patches\n\nThe problem has been patched in 1.0.4.\n\n### Workarounds\n\nThere is no workaround aside from upgrading to 1.0.4.\n","aliases":["CVE-2021-41167"],"modified":"2026-07-08T06:28:00.415961790Z","published":"2021-10-21T17:49:30Z","database_specific":{"github_reviewed_at":"2021-10-20T17:39:03Z","nvd_published_at":"2021-10-20T19:15:00Z","cwe_ids":["CWE-400","CWE-770"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/nicolas-van/modern-async/security/advisories/GHSA-3pcq-34w5-p4g2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41167"},{"type":"WEB","url":"https://github.com/nicolas-van/modern-async/issues/5"},{"type":"WEB","url":"https://github.com/nicolas-van/modern-async/commit/0010d28de1b15d51db3976080e26357fa7144436"},{"type":"PACKAGE","url":"https://github.com/nicolas-van/modern-async"}],"affected":[{"package":{"name":"modern-async","ecosystem":"npm","purl":"pkg:npm/modern-async"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-3pcq-34w5-p4g2/GHSA-3pcq-34w5-p4g2.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}