Resource Exhaustion Affecting node-fetch package, versions *


Severity

Recommended
low

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
1.69% (75th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL10-NODEFETCH-9845671
  • published28 Apr 2025
  • disclosed10 Sept 2020

Introduced: 10 Sep 2020

CVE-2020-15168  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:10 node-fetch.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-fetch package and not the node-fetch package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

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 Base Scores

version 3.1