high8.8
CVE-2022-0235
node-fetch forwards secure headers to untrusted sites
Impact
node-fetch forwards secure headers such as `authorization`, `www-authenticate`, `cookie`, & `cookie2` when redirecting to a untrusted site.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | node-fetch | >= 3.0.0, < 3.1.1 | 3.1.1 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Node-Fetch Project | Node-Fetch | before 2.6.7 from 3.0.0 before 3.1.1 |
| Siemens | Sinec Ins | before 1.0 Version 1.0 |
| Debian | Debian Linux | Version 10.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf
- https://github.com/node-fetch/node-fetch/commit/36e47e8a6406185921e4985dcbeff140d73eaa10
- https://huntr.dev/bounties/d26ab655-38d6-48b3-be15-f9ad6b6ae6f7
- https://lists.debian.org/debian-lts-announce/2022/12/msg00007.html
- https://github.com/advisories/GHSA-r683-j2x4-v87g
- https://nvd.nist.gov/vuln/detail/CVE-2022-0235
- https://github.com/node-fetch/node-fetch/pull/1453
- https://github.com/node-fetch/node-fetch/commit/5c32f002fdd65b1c6a8f1e3620210813d45c7e60
- https://github.com/node-fetch/node-fetch/pull/1449/commits/5c32f002fdd65b1c6a8f1e3620210813d45c7e60
- https://github.com/node-fetch/node-fetch/commit/1ef4b560a17e644a02a3bfdea7631ffeee578b35