Appsecure logo

CVE-2024-28849: Medium Vulnerability in follow-redirects_project follow-redirects

CVE-2024-28849 is a medium-severity vulnerability in the follow-redirects library for Node.js. Affected versions can leak credentials during cross-domain redirects. Upgrade to version 1.15.6 to mitigate this risk.

MEDIUMCVSS 6.5 · Published March 14, 2024

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

CVE-2024-28849 is a medium-severity vulnerability affecting the follow-redirects library, which is a drop-in replacement for Node's http and https modules. This vulnerability allows credentials to leak due to improper handling of the proxy-authentication header. In affected versions, the authorization header is cleared during cross-domain redirects, but the proxy-authentication header, which contains sensitive credentials, remains intact. This oversight could lead to unauthorized access and compromise sensitive information.

The CVSS score for this vulnerability is 6.5, indicating a medium level of severity. The vulnerability is characterized by a network attack vector, low attack complexity, and requires low privileges to exploit. It is crucial for organizations utilizing this library to address this vulnerability promptly to minimize potential risks.

Organizations should prioritize patching immediately. The vulnerability was addressed in version 1.15.6 of the follow-redirects library, and users are strongly advised to upgrade to this version or a later one. There are no known workarounds for this vulnerability, making the upgrade the only feasible solution.

The risk to organizations includes potential credential leaks, which can lead to unauthorized access and data breaches. The urgency to remediate this vulnerability cannot be overstated, as it poses a significant threat to the integrity and confidentiality of sensitive user data.

Security teams must remain vigilant and ensure that all systems using the follow-redirects library are updated to the latest version. Failure to do so could expose organizations to significant security risks.

Vulnerability Details

The vulnerability is detailed as follows:

Attribute

Details

CVE ID

CVE-2024-28849

Description

follow-redirects is an open-source, drop-in replacement for Node's http and https modules that automatically follows redirects. In affected versions, it only clears the authorization header during cross-domain redirects, while keeping the proxy-authentication header which contains credentials.

CVSS Score

6.5

Severity

Medium

Affected Versions

All versions prior to 1.15.6

Technical Analysis

The root cause of this vulnerability stems from the treatment of the proxy-authentication header in follow-redirects. During cross-domain redirects, it fails to clear this header, which can leak sensitive credentials to unintended recipients.

This vulnerability has a network attack vector, meaning an attacker can exploit it remotely without requiring physical access to the system. The attack complexity is low, as it does not necessitate any specialized skills or resources. The privileges required are low, allowing even users with minimal access to potentially exploit the vulnerability.

User interaction is not required for exploitation, which adds to the severity of the risk. The confidentiality impact is high, as credentials could be exposed, while the integrity and availability impacts are none.

Risk & Impact Analysis

The real-world deployment risk of CVE-2024-28849 is significant. Organizations utilizing the follow-redirects library must understand the potential for credential leaks that could lead to unauthorized access and data breaches. This vulnerability represents a critical risk in environments that handle sensitive user information.

The blast radius of this vulnerability extends to any application utilizing affected versions of the follow-redirects library. Organizations must prioritize their patching efforts to mitigate this risk, especially considering the CVSS score of 6.5, which indicates a medium severity level.

As organizations assess their vulnerability management strategies, they should consider this vulnerability in their urgent patch cycle. The lack of known workarounds means that the only way to address this risk is through upgrading to version 1.15.6 or later.

Exploitation Status

Signal

Status

Known Exploit

No

Public PoC

No

Actively Exploited

No

Ransomware Use

No

Affected Versions

All versions of follow-redirects prior to 1.15.6 are affected by this vulnerability. Users must upgrade to version 1.15.6 or later to mitigate the risk associated with this vulnerability.

Mitigation & Remediation

To mitigate the risk posed by CVE-2024-28849, organizations should upgrade to version 1.15.6 of the follow-redirects library as soon as possible. This is the only effective remediation for this vulnerability.

In addition to upgrading, organizations should implement strong monitoring controls to detect any anomalies that may indicate exploitation attempts related to this vulnerability. This includes reviewing logs for unauthorized access and ensuring that credential management practices are robust.

For further assistance in managing vulnerabilities, organizations can consider engaging with professional services for thorough security assessments such as application security assessments.

Detection Guidance

Organizations should monitor system logs for any unexpected access patterns or unauthorized attempts to use the follow-redirects library. Behavioral anomalies, such as unusual redirect patterns or unauthorized credential submissions, should be investigated promptly.

Network signatures may also help identify exploitation attempts. Ensuring that all systems are updated to the latest version of follow-redirects will significantly reduce the risk of exploitation.

AppSecure Threat Intelligence Insight

CVE-2024-28849 highlights the importance of rigorous code review and vulnerability management practices. The trend of credential leaks due to improper handling of authentication headers underscores the need for developers to be vigilant in securing their applications.

Security teams should regularly review their dependency management practices to ensure that libraries like follow-redirects are kept up to date. This can help avoid similar vulnerabilities in the future.

For comprehensive security assessments and to learn more about vulnerabilities and their management, organizations can explore resources such as penetration testing services, which can provide insights into existing security weaknesses and remediation strategies.

Additionally, organizations should review their security frameworks and consider integrating solutions that provide continuous monitoring and vulnerability management, ensuring proactive identification and remediation of potential risks.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.