CVE-2024-28849: Vulnerability in follow-redirects package

follow-redirects Updated 02 Oct 2025

Summary

14/03/2024
Yes i
Moderate
6.5

CVE-2024-28849: follow-redirects' Proxy-Authorization header kept across hosts. Affects follow-redirects versions < 1.15.6. Fixed in 1.15.6. How to fix ↓

Also tracked for

The same CVE-2024-28849 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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

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

The follow-redirects package is a dependency library used by axios, a popular JavaScript library for making HTTP requests. It provides functionality for handling redirects during HTTP requests. The vulnerability in the follow-redirects package allows the Proxy-Authorization header to be kept across hosts during cross-domain redirects, potentially leading to credentials leak.

Vulnerability Detail

The vulnerability arises from the follow-redirects library's failure to clear the proxy-authentication header during cross-domain redirects. While sensitive headers like authorization and cookie are cleared, the proxy-authentication header, which may contain credentials, is retained. This can result in the leakage of sensitive information. The impact of this vulnerability is moderate.

How To Fix

Latest published version: 1.16.1 as of 22 Oct 2026

npm install follow-redirects@1.16.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.15.6

This is the first release that contains the fix.

npm install follow-redirects@1.15.6

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

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The vulnerability in the follow-redirects package allows the proxy-authentication header to be kept across hosts during cross-domain redirects, potentially leading to credentials leak. It is recommended to update the package to the latest secure version (1.15.6 or higher) to mitigate this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for follow-redirects →

Share this vulnerability

FAQ

The follow-redirects package is a dependency library used by axios for handling redirects during HTTP requests.

This vulnerability may lead to the leakage of credentials.

To fix this vulnerability, update the follow-redirects package to version 1.15.6 or higher.

No specific workaround is mentioned for this vulnerability.

For more information, you can refer to the provided references and the Vulert playground at Vulert Scanner.

Related vulnerabilities

Recent vulnerabilities recorded for follow-redirects.

How To Fix

Latest published version: 1.16.1 as of 22 Oct 2026

npm install follow-redirects@1.16.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.15.6

This is the first release that contains the fix.

npm install follow-redirects@1.15.6

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