{"id":"CVE-2020-15168","aliases":["CVE-2020-15168","GHSA-w7rc-rwvf-8q5r"],"related":[],"kind":"vulnerability","state":"published","title":"File size limit bypass in node-fetch","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nNode Fetch 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.\n\nFor 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.\n\n### Patches\nWe released patched versions for both stable and beta channels:\n\n- For `v2`: 2.6.1\n- For `v3`: 3.0.0-beta.9\n\n### Workarounds\nNone, it is strongly recommended to update as soon as possible.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [node-fetch](https://github.com/node-fetch/node-fetch/issues/new?assignees=&labels=question&template=support-or-usage.md&title=Question%3A+)\n* Contact one of the core maintainers.","format":"markdown","source":"ghsa"},{"lang":"es","text":"node-fetch  versiones anteriores a 2.6.1 y a 3.0.0-beta.9 no respetaba la opción de tamaño después de seguir un redireccionamiento, lo que significa que cuando un tamaño de contenido superaba el límite, una FetchError nunca se iniciaba y el proceso terminaba sin fallos.&#xa0;Para la mayoría de las personas, esta solución tendrá un impacto mínimo o nulo.&#xa0;Sin embargo, si confía en node-fetch para bloquear archivos por encima de un tamaño, el impacto podría ser significativo, por ejemplo: si no verifica dos veces el tamaño de los datos después de que se haya completado la función fetch(), su hilo o subproceso JS podría atarse haciendo que en un archivo grande (DoS) y/o le cueste dinero en informática","source":"nvd"}],"published":"2020-09-10T17:46:21.000Z","modified":"2026-07-08T06:00:29.567Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L","score":2.6,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L","score":2.6,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L","score":2.6,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-20","CWE-770"],"affected":[{"ranges":[{"version":"<2.6.1","status":"affected"},{"version":">3.0.0-beta.1, <3.0.0-beta.9","status":"affected"}],"vendor":"node-fetch","product":"node-fetch","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.6.1"}],"ecosystem":"npm","package":"node-fetch","purl":"pkg:npm/node-fetch","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.0.0-beta.1","status":"affected","fixed":"3.0.0-beta.9"}],"ecosystem":"npm","package":"node-fetch","purl":"pkg:npm/node-fetch","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.6.1"},{"status":"affected","version":"3.0.0"},{"status":"affected","version":"3.0.0"},{"status":"affected","version":"3.0.0"},{"status":"affected","version":"3.0.0"},{"status":"affected","version":"3.0.0"}],"vendor":"node-fetch_project","product":"node-fetch","cpe":"cpe:2.3:a:node-fetch_project:node-fetch:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/node-fetch/node-fetch/security/advisories/GHSA-w7rc-rwvf-8q5r","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.npmjs.com/package/node-fetch","tags":["product","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15168","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/node-fetch/node-fetch/commit/2358a6c2563d1730a0cdaccc197c611949f6a334","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/node-fetch/node-fetch/commit/eaff0094c4dfdd5b78711a8c4f1b61e33d282072","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/node-fetch/node-fetch","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-15168","url":"https://www.cve.org/CVERecord?id=CVE-2020-15168","licence":"CVE Terms of Use","modified":"2024-08-04T13:08:22.463Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w7rc-rwvf-8q5r","url":"https://github.com/advisories/GHSA-w7rc-rwvf-8q5r","licence":"CC-BY-4.0","modified":"2026-07-08T06:00:29.567Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-15168","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15168","licence":"Public domain","modified":"2026-06-17T02:56:11.160Z"}],"updatedAt":"2026-11-25T22:57:54.598Z","epss":{"score":0.01692,"percentile":0.77785,"date":"2026-12-01T12:00:22.000Z"}}