# CVE-2020-15168: File size limit bypass in node-fetch

- Severity: Low 2.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.69%, higher than 77% of CVEs (2026-12-01)
- Published: 2020-09-10T17:46:21.000Z
- Modified: 2026-07-08T06:00:29.567Z
- Also known as: GHSA-w7rc-rwvf-8q5r
- Weaknesses: CWE-20, CWE-770
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- node-fetch node-fetch: <2.6.1; >3.0.0-beta.1, <3.0.0-beta.9
- node-fetch (npm): from 2.0.0 before 2.6.1; from 3.0.0-beta.1 before 3.0.0-beta.9
- node-fetch_project node-fetch: before 2.6.1; 3.0.0

## Every score

- GitHub_M: CVSS:3.1 2.6 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 2.6 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/node-fetch/node-fetch/security/advisories/GHSA-w7rc-rwvf-8q5r> (third-party-advisory, web)
- <https://www.npmjs.com/package/node-fetch> (product, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-15168> (advisory)
- <https://github.com/node-fetch/node-fetch/commit/2358a6c2563d1730a0cdaccc197c611949f6a334> (web)
- <https://github.com/node-fetch/node-fetch/commit/eaff0094c4dfdd5b78711a8c4f1b61e33d282072> (web)
- <https://github.com/node-fetch/node-fetch> (package)

## Sources

- CVE List: [CVE-2020-15168](https://www.cve.org/CVERecord?id=CVE-2020-15168), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-w7rc-rwvf-8q5r](https://github.com/advisories/GHSA-w7rc-rwvf-8q5r), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-15168](https://nvd.nist.gov/vuln/detail/CVE-2020-15168), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-15168 · Whole record: https://cve.day/CVE-2020-15168.json · Rebuilt by cve.day 2026-11-25T22:57:54.598Z
