HighGHSA-r683-j2x4-v87gCVE-2022-0235

node-fetch forwards secure headers to untrusted sites

Published 21 Jan 2022 · Updated 8 Nov 2023

Affected packages

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.1
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.7

Details

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.