Vulnerability · Published Sep 10, 2020 · Assigned by GitHub_M
CVE-2020-15168File size limit bypass in node-fetch
Low 2.6
In plain English
A low-severity improper input validation in node-fetch from node-fetch. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-fetch | 2.6.1-2 | DEBIAN-CVE-2020-15168 |
| Debian:13 | node-fetch | 2.6.1-2 | DEBIAN-CVE-2020-15168 |
| Debian:14 | node-fetch | 2.6.1-2 | DEBIAN-CVE-2020-15168 |
| npm | node-fetch | 2.6.1 | GHSA-w7rc-rwvf-8q5r |
| npm | node-fetch | 3.0.0-beta.9 | GHSA-w7rc-rwvf-8q5r |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| node-fetch | node-fetch | <2.6.1>3.0.0-beta.1, <3.0.0-beta.9 |
Weakness: CWE-20, CWE-770 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L
References
- https://github.com/node-fetch/node-fetch/security/advisories/GHSA-w7rc-rwvf-8q5r x_refsource_CONFIRM
- https://www.npmjs.com/package/node-fetch x_refsource_MISC