CVE-2020-15168
File size limit bypass in node-fetch
node-fetch before versions 2.6.1 and 3.0.0-beta.9 did not honor the size option after following a redirect, which means that when a content size was over the limit, a FetchError would never get thrown and the process would end without failure. For most people, this fix will have a little or no impact. However, if you are relying on node-fetch to gate files above a size, the impact could be significant, for example: If you don't double-check the size of the data after fetch() has completed, your JS thread could get tied up doing work on a large file (DoS) and/or cost you money in computing.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.692% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 2.6 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L
Assessment source · checked 2026-11-19T12:55:26.597Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:55:26.597Z | CVE Program |
| epss | verified | 2026-11-19T18:27:04.282Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:31.686Z | OSV |
| affected | verified | 2026-11-19T12:55:26.597Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:26.597Z | CVE Program |
Affected versions and configuration
node-fetch node-fetch; default status: unknown: <2.6.1 [affected; scheme: unspecified]; >3.0.0-beta.1, <3.0.0-beta.9 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "node-fetch",
"product": "node-fetch",
"versions": [
{
"status": "affected",
"version": "<2.6.1"
},
{
"status": "affected",
"version": ">3.0.0-beta.1, <3.0.0-beta.9"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/node-fetch/node-fetch/security/advisories/GHSA-w7rc-rwvf-8q5r",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://www.npmjs.com/package/node-fetch",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-04T13:08:22.463Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-w7rc-rwvf-8q5r",
"aliases": [
"CVE-2020-15168"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.6.1"
}
]
}
],
"package": {
"name": "node-fetch",
"purl": "pkg:npm/node-fetch",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-w7rc-rwvf-8q5r/GHSA-w7rc-rwvf-8q5r.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "3.0.0-beta.1"
},
{
"fixed": "3.0.0-beta.9"
}
]
}
],
"package": {
"name": "node-fetch",
"purl": "pkg:npm/node-fetch",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-w7rc-rwvf-8q5r/GHSA-w7rc-rwvf-8q5r.json",
"last_known_affected_version_range": "<= 3.0.0-beta.8"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/node-fetch/node-fetch/security/advisories/GHSA-w7rc-rwvf-8q5r",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-15168",
"type": "ADVISORY"
},
{
"url": "https://github.com/node-fetch/node-fetch/commit/2358a6c2563d1730a0cdaccc197c611949f6a334",
"type": "WEB"
},
{
"url": "https://github.com/node-fetch/node-fetch/commit/eaff0094c4dfdd5b78711a8c4f1b61e33d282072",
"type": "WEB"
},
{
"url": "https://github.com/node-fetch/node-fetch",
"type": "PACKAGE"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-20",
"CWE-770"
],
"severity": "LOW",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2020-09-10T17:44:09Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | node-fetch | Not a distribution channel | 2.6.1 | Official record |
| ecosystem-boundary | npm / package | node-fetch | Not a distribution channel | 3.0.0-beta.9 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:31.686ZArchived source JSON
Source publication: 2020-09-10T17:46:21.000Z
Source modification: 2026-07-08T06:00:29.567ZDocument fingerprint
a8ddfe37252b47c23b2c878a6515dd330d72d528d4b597374e44087dad89e928 - FIRST EPSSConsulted: 2026-11-19T18:27:04.282ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
79c410884fd78eafbdac79b6945a23346f1d7d13a5f88e79a579a85f2c56a9fc - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - CVE ProgramConsulted: 2026-11-19T12:55:26.597ZArchived source JSON
Source publication: 2020-09-10T18:25:13.000Z
Source modification: 2024-08-04T13:08:22.463ZDocument fingerprint
44481c0c47122c1d800efc00dcfac385452fff8e34ee04708a50caaa75c29e3b
Official status history
- UNKNOWN → PUBLISHED · · evidence