Credentials Leak Vulnerability in node-follow-redirects Package

node-follow-redirects Updated 02 Oct 2025

Summary

14/03/2024
N/A
No i
Unrated
Not published

CVE-2024-28849: follow-redirects is an open source, drop-in replacement for Node's http and https modules that automatically follows redirects. Affects node-follow-redirects versions < c4f847f85176991f95ab9c88af63b1294de8649b. No fix is published. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The node-follow-redirects package is an open-source library designed to serve as a drop-in replacement for Node.js's native http and https modules. It automatically follows HTTP redirects, making it easier for developers to handle web requests without manually managing redirections. However, this convenience comes with a security risk, as certain versions of the package do not adequately clear sensitive authorization headers during cross-domain redirects.

Vulnerability Detail

The vulnerability identified as CVE-2024-28849 arises from the node-follow-redirects package's failure to clear the proxy-authentication header during cross-domain redirects. While the authorization header is cleared, the proxy-authentication header, which may contain sensitive credentials, is retained. This oversight can lead to the unintended exposure of user credentials, potentially allowing malicious actors to exploit this information. The issue has been addressed in version 1.15.6 of the package.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There are no known workarounds for this vulnerability. The only effective solution is to upgrade to the patched version of the package.

Conclusion

The CVE-2024-28849 vulnerability in the node-follow-redirects package poses a significant risk by potentially exposing sensitive credentials through improper handling of headers during redirects. Users are strongly advised to upgrade to version 1.15.6 or later to safeguard their applications against this vulnerability.

See every vulnerability recorded for node-follow-redirects →

Share this vulnerability

FAQ

CVE-2024-28849 is a vulnerability in the node-follow-redirects package that allows sensitive credentials to be leaked due to improper handling of the proxy-authentication header during cross-domain redirects.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. By simply uploading your manifest file, like package-lock.json, you can check if your application is affected by CVE-2024-28849.

All versions of the node-follow-redirects package prior to 1.15.6 are affected by this vulnerability.

Unfortunately, there are no workarounds available. The only way to mitigate this issue is to upgrade to version 1.15.6 or later.

If an immediate upgrade is not possible, consider reviewing your application's use of the node-follow-redirects package and assess the risk of potential credential leaks until you can apply the necessary updates.

Related vulnerabilities

Recent vulnerabilities recorded for node-follow-redirects.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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