Skip to content
Heist/ feed
Back to feed
MediumFix available

node-fetch — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2020-15168

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.

Products
node-fetch
Affected versions
Not specified
Fixed versions
2.6.1-2
CVEs
CVE-2020-15168
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 12:30 UTC · Revision 1

Source evidence

DEBIAN-CVE-2020-15168

core-osv · Original source

Published 10 Sept 2020, 19:15 UTC

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.

osv:DEBIAN-CVE-2020-15168

node-fetch

Fixed versions: 2.6.1-2

node-fetch

Fixed versions: 2.6.1-2

node-fetch

Fixed versions: 2.6.1-2

Complete source record
{
  "id": "b42bbafc907b5bb99d5456b139cf4c09e61e2bead8080d5acfca7226eee6e3f6",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2020-15168",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2020-15168",
    "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.",
    "evidence": "osv:DEBIAN-CVE-2020-15168",
    "products": [
      {
        "name": {
          "value": "node-fetch",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.6.1-2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "node-fetch",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.6.1-2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "node-fetch",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.6.1-2",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2020-15168",
      "aliases": [
        "DEBIAN-CVE-2020-15168"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.6.1-2"
                }
              ]
            }
          ],
          "package": {
            "name": "node-fetch",
            "purl": "pkg:deb/debian/node-fetch?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-15168.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.6.1-2"
                }
              ]
            }
          ],
          "package": {
            "name": "node-fetch",
            "purl": "pkg:deb/debian/node-fetch?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-15168.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.6.1-2"
                }
              ]
            }
          ],
          "package": {
            "name": "node-fetch",
            "purl": "pkg:deb/debian/node-fetch?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-15168.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T12:00:24.482890562Z",
      "provider": "osv",
      "upstream": [
        "CVE-2020-15168"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2020-15168"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2020-15168",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 451109,
  "published_at": "2020-09-10T19:15:13.49+00:00"
}