CVE-2020-15168: node-fetch_project node-fetch Improper Input Validation
Vulnerability summary
CVE-2020-15168 is a medium (CVSS 5.3) Improper Input Validation vulnerability in node-fetch_project node-fetch. EPSS estimates a 1.69% chance of exploitation in the next 30 days, higher than 76.8% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 10-09-2020PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 5 sources · 2 versions- CVE.orgCNA2.6LowCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · NpmEcosystem advisory · calculated2.6LowCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:LDiffers
EPSS trend
Probability
1.69%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
0.00 pp
From 1.69% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
- CWE-770Allocation of Resources Without Limits or ThrottlingThe product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.
Affected systems
Debian1 product
- node-fetch< 2.6.1-2
Node-fetch1 product
- node-fetch< 2.6.1 | > 3.0.0-beta.1, < 3.0.0-beta.9
Node-fetch_project1 product
- node-fetch< 2.6.1 | 3.0.0:beta1 | 3.0.0:beta5 | 3.0.0:beta6 | 3.0.0:beta7 | 3.0.0:beta8
Npm1 product
- node-fetch≥ 2.0.0, < 2.6.1 | ≥ 3.0.0-beta.1, < 3.0.0-beta.9
Ubuntu1 product
- node-fetchAll versions (No fix recorded)
5 vendors · 5 products
References
9 links- github.com/node-fetch/node-fetch/security/advisories/GHSA-w7rc-rwvf-8q5rX Refsource CONFIRMREPORTWEBThird Party Advisory