Information Leak Vulnerability in node-fetch

node-fetch Updated 02 Oct 2025

Summary

05/12/2022
N/A
Yes i
Unrated
Not published

DLA-3222-1: node-fetch - security update. Affects node-fetch versions < 1.7.3-1+deb10u1. Fixed in 1.7.3-1+deb10u1. 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 Your last release was probably never penetration tested 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 Node.js module that provides a window.fetch compatible API on the Node.js runtime. It allows developers to make HTTP requests in a simple and convenient manner. However, a vulnerability has been discovered in node-fetch that could lead to an information leak. The module did not properly enforce the same-origin policy, resulting in the leakage of cookies to the target URL when following a redirect.

Vulnerability Detail

The information leak vulnerability in node-fetch arises from its failure to adhere to the same-origin policy. When the module follows a redirect, it unintentionally leaks cookies to the target URL. This can have serious ramifications, as sensitive information stored in cookies could be exposed to unauthorized parties. Attackers could potentially exploit this vulnerability to gain access to user credentials or perform session hijacking attacks.

How To Fix

Minimum fixed version

1.7.3-1+deb10u1

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

There is no known workaround for this vulnerability. It is essential to upgrade to the fixed version of node-fetch to ensure the security of your application.

Conclusion

The information leak vulnerability in node-fetch can lead to the exposure of sensitive information stored in cookies. It is crucial to upgrade to the fixed version of node-fetch (1.7.3-1+deb10u1 or later) to mitigate this risk. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for node-fetch →

Share this vulnerability

FAQ

node-fetch is a Node.js module that provides a window.fetch compatible API on the Node.js runtime. It allows developers to make HTTP requests in a simple and convenient manner.

The information leak vulnerability in node-fetch could result in the exposure of sensitive information stored in cookies. Attackers could potentially gain access to user credentials or perform session hijacking attacks.

To fix this vulnerability, you should upgrade your node-fetch package to version 1.7.3-1+deb10u1 or later. This version includes the necessary patches to enforce the same-origin policy and prevent the leakage of cookies.

There is no known workaround for this vulnerability. It is crucial to upgrade to the fixed version of node-fetch to ensure the security of your application.

You can find more information about this vulnerability in the security tracker page for node-fetch at https://security-tracker.debian.org/tracker/node-fetch.

Related vulnerabilities

Recent vulnerabilities recorded for node-fetch.

How To Fix

Minimum fixed version

1.7.3-1+deb10u1

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