CVE-2024-28849: Proxy-Authorization header kept across hosts in follow-redirects

Published Mar 14, 2024
·
Updated

follow-redirects is an open source, drop-in replacement for Node's http and https modules that automatically follows redirects. In affected versions follow-redirects only clears authorization header during cross-domain redirect, but keep the proxy-authentication header which contains credentials too. This vulnerability may lead to credentials leak, but has been addressed in version 1.15.6. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Other sources

Node.js follow-redirects module could allow a remote authenticated attacker to obtain sensitive information, caused by the leakage of credentials when clearing authorization header during cross-domain redirect, but keeping the proxy-authentication header. An attacker could exploit this vulnerability to obtain credentials and other sensitive information.

IBM

Proxy-Authorization header kept across hosts in follow-redirects

Microsoft

When using axios, its dependency follow-redirects only clears authorization header during cross-domain redirect, but allows the proxy-authentication header which contains credentials too.

Steps To Reproduce & PoC

Test code:

js const axios = require('axios');

axios.get('http://127.0.0.1:10081/', { headers: { 'AuThorization': 'Rear Test', 'ProXy-AuthoriZation': 'Rear Test', 'coOkie': 't=1' } }) .then((response) => { console.log(response); })

When I meet the cross-domain redirect, the sensitive headers like authorization and cookie are cleared, but proxy-authentication header is kept.

Impact

This vulnerability may lead to credentials leak.

Recommendations

Remove proxy-authentication header during cross-domain redirect

Recommended Patch

follow-redirects/index.js:464

diff - removeMatchingHeaders(/^(?:authorization|cookie)$/i, this.options.headers); + removeMatchingHeaders(/^(?:authorization|proxy-authorization|cookie)$/i, this.options.headers);

GitHub

Affected Software

11 affected componentsFixes available
npm/follow-redirects<=1.15.5
1.15.6
IBM Data Virtualization on Cloud Pak for Data<=3.0
IBM Watson Query on Cloud Pak for Data<=2.2
IBM Watson Query on Cloud Pak for Data<=2.1
IBM Watson Query on Cloud Pak for Data<=2.0
IBM Data Virtualization on Cloud Pak for Data<=1.8
IBM Data Virtualization on Cloud Pak for Data<=1.7
redhat/follow-redirects<1.15.6
1.15.6
Follow-redirects Project Follow-redirects Node.js<1.15.6
Microsoft cbl2 reaper 3.1.1-9
Microsoft cbl2 reaper 3.1.1-8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/follow-redirects to a version that resolves this vulnerability.

    Fixed in 1.15.6
  2. Upgrade

    Upgrade redhat/follow-redirects to a version that resolves this vulnerability.

    Fixed in 1.15.6
  3. Upgrade

    Upgrade follow-redirects/follow-redirects to a version that resolves this vulnerability.

    Fixed in 1.15.6
  4. Configuration

    In follow-redirects, during cross-domain redirects, clear the Proxy-Authorization header in addition to clearing Authorization (and Cookie as applicable), because the proxy-authentication header may contain credentials and must not be kept across hosts.

    follow-redirects removeMatchingHeaders (proxy-authentication) during cross-domain redirect = Remove proxy-authentication header during cross-domain redirect (i.e., include proxy-authorization in the headers to clear)

Event History

Mar 14, 2024
CVE Published
via MITRE·05:07 PM
Data Sourced
via MITRE·05:07 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 PM
RemedyAffected Software
Advisory Published
via GitHub·05:19 PM
Data Sourced
via Red Hat·06:20 PM
DescriptionSeverityAffected Software
Mar 25, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Aug 15, 2025
Data Sourced
via IBM·03:29 PM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-28849?

CVE-2024-28849 has been classified with a medium severity level due to its potential impact on security regarding unauthorized access.

2

How do I fix CVE-2024-28849?

To remediate CVE-2024-28849, upgrade the follow-redirects package to version 1.15.6 or higher.

3

What versions are affected by CVE-2024-28849?

CVE-2024-28849 affects versions of the follow-redirects package up to 1.15.5 inclusive.

4

What systems are impacted by CVE-2024-28849?

CVE-2024-28849 impacts applications using the follow-redirects package, including IBM Cognos Dashboards on Cloud Pak for Data versions up to 5.0.0.

5

Is CVE-2024-28849 remotely exploitable?

Yes, CVE-2024-28849 can be remotely exploited due to the handling of authorization headers during cross-domain redirects.

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