Packages / node-fetch / Security
HighVulnerabilityGHSA-r683-j2x4-v87gCVE-2022-0235Published 21 Jan 2022
node-fetch forwards secure headers to untrusted sites
Affected releases · node-fetch
- 3.x3.0.0 – 3.1.0Fixed in 3.1.1
- 2.x2.0.0 – 2.6.6Fixed in 2.6.7
- 1.x and older0.1.0 – 1.7.3No fix, no longer updated
On 3.x, the newest line:
npm install node-fetch@3.1.13.x
Affected
3.0.0 – 3.1.0
2 releases
Fixed
3.1.1 – 3.3.2
15 releases, latest
2.x
Affected
2.0.0 – 2.6.6
17 releases
Fixed
2.6.7 – 2.7.0
8 releases
1.x
Affected
1.0.0 – 1.7.3
30 releases
0.x
Affected
0.1.0
1 release
Is your project affected?
Paste your package.json, or type the range you declare for node-fetch. It is read in your browser and sent nowhere.
What happens
node-fetch forwards secure headers such as authorization, www-authenticate, cookie, & cookie2 when redirecting to a untrusted site.