CVE-2022-0235: Exposure of Sensitive Information to an Unauthorized Actor in node-fetch/node-fetch

Published Jan 14, 2022
·
Updated

A flaw was found in node-fetch. When following a redirect to a third-party domain, node-fetch was forwarding sensitive headers such as "Authorization," "WWW-Authenticate," and "Cookie" to potentially untrusted targets. This flaw leads to the exposure of sensitive information to an unauthorized actor.

Other sources

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

node-fetch is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor

Node.js node-fetch could allow a remote authenticated attacker to obtain sensitive information, caused by a flaw when fetching a remote url with Cookie. By sending a specially-crafted request, an attacker could exploit this vulnerability to obtain sensitive information.

IBM

Affected Software

12 affected componentsFixes available
redhat/rh-nodejs14-nodejs<0:14.21.1-3.el7
0:14.21.1-3.el7
redhat/rh-nodejs14-nodejs-nodemon<0:2.0.20-2.el7
0:2.0.20-2.el7
npm/node-fetch<2.6.7
2.6.7
npm/node-fetch>=3.0.0<3.1.1
3.1.1
Node-fetch Project Node-fetch Node.js<2.6.7
Node-fetch Project Node-fetch Node.js>=3.0.0<3.1.1
Siemens Sinec Ins<1.0
Siemens Sinec Ins=1.0
Siemens Sinec Ins=1.0-sp1
Debian Debian Linux=10.0
redhat/node-fetch<2.6.7
2.6.7
redhat/node-fetch<3.1.1
3.1.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/rh-nodejs14-nodejs to a version that resolves this vulnerability.

    Fixed in 0:14.21.1-3.el7
  2. Upgrade

    Upgrade redhat/rh-nodejs14-nodejs-nodemon to a version that resolves this vulnerability.

    Fixed in 0:2.0.20-2.el7
  3. Upgrade

    Upgrade npm/node-fetch to a version that resolves this vulnerability.

    Fixed in 2.6.7
  4. Upgrade

    Upgrade npm/node-fetch to a version that resolves this vulnerability.

    Fixed in 3.1.1
  5. Upgrade

    Upgrade redhat/node-fetch to a version that resolves this vulnerability.

    Fixed in 2.6.7
  6. Upgrade

    Upgrade redhat/node-fetch to a version that resolves this vulnerability.

    Fixed in 3.1.1

Event History

Jan 14, 2022
CVE Published
12:00 AM
Jan 16, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Jan 21, 2022
Advisory Published
11:55 PM
Jan 24, 2022
Data Sourced
via Red Hat·07:35 PM
DescriptionSeverityAffected Software
Apr 29, 2022
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Aug 8, 58337
Event
02:16 PM

Frequently Asked Questions

1

What is the severity of CVE-2022-0235?

The severity of CVE-2022-0235 is high (8.8).

2

What is the affected software for CVE-2022-0235?

The affected software for CVE-2022-0235 is node-fetch.

3

What is the remedy for CVE-2022-0235?

The remedy for CVE-2022-0235 is to update node-fetch to version 2.6.7 or 3.1.1.

4

Where can I find more information about CVE-2022-0235?

More information about CVE-2022-0235 can be found in the NVD vulnerability report, GitHub commit, and Huntr bounty links.

5

What sensitive information is exposed by CVE-2022-0235?

CVE-2022-0235 exposes sensitive headers such as "Authorization," "WWW-Authenticate," and "Cookie" to potentially untrusted targets.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203