{"cve":"CVE-2020-15168","nvd":{"published":"2020-09-10T19:15:13.490","modified":"2026-06-17T02:56:11.160","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3},"cwes":["CWE-770","CWE-20"],"references":["https://github.com/node-fetch/node-fetch/security/advisories/GHSA-w7rc-rwvf-8q5r","https://www.npmjs.com/package/node-fetch","https://github.com/node-fetch/node-fetch/security/advisories/GHSA-w7rc-rwvf-8q5r","https://www.npmjs.com/package/node-fetch"],"products":["node-fetch_project:node-fetch"],"source":"nvd","synced_at":"2026-10-19T21:09:20.498348299+00:00"},"epss":{"cve":"CVE-2020-15168","score":0.01692,"percentile":0.77106,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-w7rc-rwvf-8q5r","url":"https://osv.dev/vulnerability/GHSA-w7rc-rwvf-8q5r","summary":"The `size` option isn't honored after following a redirect in node-fetch","modified":"2026-07-08T06:00:29.567074454Z","packages":[{"ecosystem":"npm","name":"node-fetch","purl":"pkg:npm/node-fetch","ranges":[">=2.0.0 <2.6.1"],"fixed":["2.6.1"]},{"ecosystem":"npm","name":"node-fetch","purl":"pkg:npm/node-fetch","ranges":[">=3.0.0-beta.1 <3.0.0-beta.9"],"fixed":["3.0.0-beta.9"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}