HighGHSA-r683-j2x4-v87gCVE-2022-0235
node-fetch forwards secure headers to untrusted sites
Published 21 Jan 2022 · Updated 8 Nov 2023
Affected packages
node-fetchnpm
- Affected
- >=3.0.0 <3.1.1
- Fixed in
- 3.1.1
Update to the fixed version for your release line, for example:
npm install node-fetch@3.1.1node-fetchnpm
- Affected
- <2.6.7
- Fixed in
- 2.6.7
Update to the fixed version for your release line, for example:
npm install node-fetch@2.6.7Details
node-fetch forwards secure headers such as authorization, www-authenticate, cookie, & cookie2 when redirecting to a untrusted site.
Is GHSA-r683-j2x4-v87g in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected node-fetch, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-0235
- Linkgithub.com/node-fetch/node-fetch/pull/1449/commits/5c32f002fdd65b1c6a8f1e3620210813d45c7e60
- Linkgithub.com/node-fetch/node-fetch/pull/1453
- Linkgithub.com/node-fetch/node-fetch/commit/1ef4b560a17e644a02a3bfdea7631ffeee578b35
- Linkgithub.com/node-fetch/node-fetch/commit/36e47e8a6406185921e4985dcbeff140d73eaa10
- Linkgithub.com/node-fetch/node-fetch/commit/5c32f002fdd65b1c6a8f1e3620210813d45c7e60
- Linkcert-portal.siemens.com/productcert/pdf/ssa-637483.pdf
- Packagegithub.com/node-fetch/node-fetch
- Linkhuntr.dev/bounties/d26ab655-38d6-48b3-be15-f9ad6b6ae6f7
- Linklists.debian.org/debian-lts-announce/2022/12/msg00007.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.