CVE-2020-15168

File size limit bypass in node-fetch

MEDIUM
5.3
CVSS Score
Published: September 10, 2020 at 06:25 PM UTC
Updated: June 17, 2026 at 02:56 AM UTC
2 products affected across 2 vendorsNode FetchFetch Project Node Fetch

Using node-fetch by node-fetch?

Get instant alerts when new vulnerabilities affect node-fetch - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

Affected range stops below 2.6.1, so it looks safe — our inference, not a vendor statement
v < 2.6.1v < 3.0.0-beta.9
Affected range stops below 2.6.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.0.0-beta.9, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

References (2)

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-20CWE-770

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card