CVE-2020-15168 — Vulnerability in node-fetch — CVE Details
The `size` option isn't honored after following a redirect in node-fetch
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.11%). Schedule for your next planned update.
Summary
Advisory Timeline
- First published September 10, 2020 (2223 days ago).
- Last revised July 8, 2026 — 2127 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install node-fetch@2.6.1
npm install node-fetch@3.0.0-beta.9
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: npm (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| node-fetch | npm | All versions | 2.6.1 |
| node-fetch | npm | All versions | 3.0.0-beta.9 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 2.6 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L
References
- https://github.com/node-fetch/node-fetch/security/advisories/GHSA-w7rc-rwvf-8q5rWEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-15168ADVISORY
- https://github.com/node-fetch/node-fetch/commit/2358a6c2563d1730a0cdaccc197c611949f6a334WEB
- https://github.com/node-fetch/node-fetch/commit/eaff0094c4dfdd5b78711a8c4f1b61e33d282072WEB
- https://github.com/node-fetch/node-fetchPACKAGE
Frequently Asked Questions
- What is CVE-2020-15168?
- The `size` option isn't honored after following a redirect in node-fetch This vulnerability has been assigned a severity rating of LOW (CVSS score: 2.6/10).
- How do I check if my project is affected by CVE-2020-15168?
- CVE-2020-15168 affects node-fetch. It has a 0.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2020-15168 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is difficult or impact is minor. Address in your next planned update.
This is a below-median EPSS score — only 30.1% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2022-0235HIGH
node-fetch forwards secure headers to untrusted sites
- CVE-2026-45772LOW
Turbo: Unexpected local code execution during Yarn Berry detection
- CVE-2024-43796LOW
express vulnerable to XSS via response.redirect()
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies