Security advisory
modern-async is an open source JavaScript tooling library for asynchronous operations using async/await and promises. In affected versions 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. The problem has been patched in 1.0.4. There is no workaround.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-41167
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:57 UTC · Revision 1
Source evidence
modern-async is an open source JavaScript tooling library for asynchronous operations using async/await and promises. In affected versions 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. The problem has been patched in 1.0.4. There is no workaround.
osv:CVE-2021-41167
Complete source record
{
"id": "5a8e26b801bf3454e88981d0533761b80a63ede7a805f2b1f038d8b23ea6736a",
"url": "https://osv.dev/vulnerability/CVE-2021-41167",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-41167",
"summary": "modern-async is an open source JavaScript tooling library for asynchronous operations using async/await and promises. In affected versions 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. The problem has been patched in 1.0.4. There is no workaround.",
"evidence": "osv:CVE-2021-41167",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-41167",
"aliases": [
"CVE-2021-41167",
"GHSA-3pcq-34w5-p4g2"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nicolas-van/modern-async",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "c2295dce5aa0b2fa7d2927e8e0e828dca64c5f5a"
},
{
"fixed": "0010d28de1b15d51db3976080e26357fa7144436"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:modern-async_project:modern-async:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.0.4"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "0010d28de1b15d51db3976080e26357fa7144436"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"1.0.3",
"1.0.2",
"1.0.1",
"1.0.0",
"0.1.6",
"0.1.5",
"0.1.4",
"0.1.3",
"0.1.2",
"0.1.1",
"0.1.0",
"0.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41167.json"
}
}
],
"modified": "2026-10-20T10:54:58.114654970Z",
"provider": "osv",
"references": [
"https://github.com/nicolas-van/modern-async/security/advisories/GHSA-3pcq-34w5-p4g2",
"https://github.com/nicolas-van/modern-async/commit/0010d28de1b15d51db3976080e26357fa7144436",
"https://github.com/nicolas-van/modern-async/issues/5"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-41167",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 386581,
"published_at": "2021-10-20T19:15:07.57+00:00"
}