Sensitive Information Exposure in node-fetch: CVE-2022-0235

node-fetch Updated 02 Oct 2025

Summary

16/01/2022
N/A
Yes i
Medium
6.1

CVE-2022-0235: node-fetch is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor. Affects node-fetch across 2 version ranges.

< 2.6.1-5+deb11u1 < 36e47e8a6406185921e4985dcbeff140d73eaa10

Fixed in 2.6.1-5+deb11u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

node-fetch is a popular lightweight module that enables server-side HTTP requests in Node.js applications. It is designed to be a simple and flexible way to make network requests, mimicking the Fetch API available in browsers. However, it has been identified to have a vulnerability that exposes sensitive information to unauthorized actors, potentially leading to data breaches.

Vulnerability Detail

CVE-2022-0235 is a vulnerability in the node-fetch package that allows unauthorized actors to access sensitive information. This issue arises from improper handling of certain requests, which can inadvertently leak data. The ramifications of this vulnerability include the potential for data exposure, which could be exploited by malicious users to gain unauthorized access to sensitive information. The vulnerability has a CVSS score of 6.1, indicating a moderate level of severity.

How To Fix

Minimum fixed version

2.6.1-5+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-fetch

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate upgrading is not feasible, consider implementing access controls to limit who can make requests to your application, thereby reducing the risk of sensitive information exposure. Additionally, review your application's logging and error handling to ensure sensitive data is not inadvertently exposed in logs.

Conclusion

The CVE-2022-0235 vulnerability in node-fetch poses a risk of sensitive information exposure. It is crucial for users to update to the latest versions of the package to mitigate this risk. Implementing additional security measures can also help protect against unauthorized access.

See every vulnerability recorded for node-fetch →

Share this vulnerability

FAQ

CVE-2022-0235 is a vulnerability in the node-fetch package that allows unauthorized access to sensitive information.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The consequences include potential data breaches where unauthorized users may gain access to sensitive information.

You can update node-fetch using your package manager. For Debian, use 'sudo apt-get install node-fetch' after updating your package list.

Yes, you can implement access controls and review your logging practices to minimize the risk of sensitive data exposure.

Related vulnerabilities

Recent vulnerabilities recorded for node-fetch.

How To Fix

Minimum fixed version

2.6.1-5+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-fetch

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback