GitHub Advisoryadvisory · npm

GHSA-r683-j2x4-v87g node-fetch forwards secure headers to untrusted sites

HIGH Published 2022-01-21 Modified 2023-09-07 Official page ↗
Aliases
CVE-2022-0235
Ecosystem
npm
Packages
node-fetch
Severity
High
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-173, CWE-200, CWE-601
Reviewed
2022-01-18

Affected packages

• npm node-fetch: >= 3.0.0, < 3.1.1 → fixed in 3.1.1 • npm node-fetch: < 2.6.7 → fixed in 2.6.7

Description

node-fetch forwards secure headers such as `authorization`, `www-authenticate`, `cookie`, & `cookie2` when redirecting to a untrusted site.

Related

Alias · CVE (1)

  • CVE-2022-0235 node-fetch is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor vulnerability

Weakness · CWE (3)

  • CWE-173 Improper Handling of Alternate Encoding weakness
  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness
  • CWE-601 URL Redirection to Untrusted Site weakness

References