{"id":"CVE-2020-15168","published":"2020-09-10T18:25:13Z","modified":"2024-08-04T13:08:22Z","title":"File size limit bypass in node-fetch","vendor":"node-fetch","product":"node-fetch","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01692,"percentile":0.77669,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/node-fetch/node-fetch/security/advisories/GHSA-w7rc-rwvf-8q5r","tags":["x_refsource_CONFIRM"]},{"url":"https://www.npmjs.com/package/node-fetch","tags":["x_refsource_MISC"]}],"priority":{"score":17.4,"factors":[{"name":"EPSS percentile","points":15.53},{"name":"CVSS severity","points":1.82}]},"vendorSlug":"node-fetch","affectedVersions":[{"vendor":"node-fetch","product":"node-fetch","versions":["<2.6.1",">3.0.0-beta.1, <3.0.0-beta.9"]}],"affected":[{"ecosystem":"npm","package":"node-fetch","vulnerableRanges":[">=2.0.0, <2.6.1",">=3.0.0-beta.1, <3.0.0-beta.9"],"patched":["2.6.1","3.0.0-beta.9"],"from":["GHSA-w7rc-rwvf-8q5r"],"provenance":"source"}],"summary":{"text":"The node-fetch library (affecting versions before 2.6.1 and 3.0.0-beta.9) does not enforce the size option after following a redirect, so oversized responses are not rejected with a FetchError. An attacker who can get a client application using node-fetch to request a resource that redirects to a large payload can cause that application to process the oversized content, which may tie up resources and incur computing cost; this requires network access, a low-privileged user, and some user interaction, and the impact is only significant where the application depends on that size limit.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:25:53Z"},"euvd":{"id":"EUVD-2020-1335","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-node-fetch-cve-2020-15168","children":[{"from":"CVE-2020-15168","to":"CVE-2022-0235","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:node-fetch","fromFixed":"2.6.1","toFixed":"2.6.7","daysApart":493},{"kind":"same-code","provenance":"machine","files":["src/index.js"],"commits":["https://github.com/node-fetch/node-fetch/commit/2358a6c2563d1730a0cdaccc197c611949f6a334","https://github.com/node-fetch/node-fetch/commit/eaff0094c4dfdd5b78711a8c4f1b61e33d282072","https://github.com/node-fetch/node-fetch/commit/36e47e8a6406185921e4985dcbeff140d73eaa10","https://github.com/node-fetch/node-fetch/commit/5c32f002fdd65b1c6a8f1e3620210813d45c7e60"],"basis":"shared function","functions":["fetch"]}]}],"packageHistory":[{"cve":"CVE-2020-15168","published":"2020-09-10","fixed":"3.0.0-beta.9","kev":false},{"cve":"CVE-2022-0235","published":"2022-01-16","fixed":"3.1.1","kev":false},{"cve":"CVE-2022-2596","published":"2022-08-01","fixed":"3.2.10","kev":false}],"package":"npm:node-fetch"}}