CVE-2020-15168

File size limit bypass in node-fetch

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.

Categories

2.6
CVSS
Severity: Low
CVSS 3.1 •
CVSS 2.0 •
EPSS 0.08%
Third-Party Advisory github.com Third-Party Advisory npmjs.com
Affected: node-fetch node-fetch
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2020-15168?
CVE-2020-15168 has been scored as a low severity vulnerability.
How to fix CVE-2020-15168?
To fix CVE-2020-15168, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2020-15168 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2020-15168 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2020-15168?
CVE-2020-15168 affects node-fetch node-fetch.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.