PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2024-28849: 
JavaScript vulnerability analysis and mitigation

Overview

The follow-redirects package, an open source drop-in replacement for Node's http and https modules that automatically follows redirects, contains a vulnerability (CVE-2024-28849) where it only clears the authorization header during cross-domain redirects but retains the proxy-authentication header which also contains credentials. This vulnerability was discovered in versions prior to 1.15.6 and was disclosed on March 14, 2024 (GitHub Advisory).

Technical details

The vulnerability stems from incomplete header sanitization during cross-domain redirects. While the package correctly removes the authorization and cookie headers when redirecting across domains, it fails to clear the proxy-authentication header, which may contain sensitive credentials. The issue has been assigned a CVSS v3.1 base score of 6.5 (Medium) with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N, indicating network attack vector, low attack complexity, and high impact on confidentiality (GitHub Advisory).

Impact

The vulnerability could lead to credential leakage when requests are redirected across different domains. If an attacker can control the redirect destination, they could potentially capture sensitive proxy authentication credentials that should have been stripped from the redirected request (GitHub Advisory).

Exploitability

The vulnerability can be exploited in scenarios where an application using follow-redirects (either directly or through dependencies like axios) makes requests with proxy authentication headers and encounters cross-domain redirects. A proof of concept demonstrates that when making a request with both Authorization and Proxy-Authorization headers, only the Authorization header is cleared during cross-domain redirects while the Proxy-Authorization header remains (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in version 1.15.6 of follow-redirects. The fix involves modifying the header removal regex to include proxy-authorization headers during cross-domain redirects. Users are advised to upgrade to version 1.15.6 or later. There are no known workarounds for this vulnerability (GitHub Advisory).

Community reactions

The vulnerability has led to security updates in various dependent packages and distributions. Red Hat has issued multiple security advisories for affected products including OpenShift GitOps and OpenShift Service Mesh (Red Hat Advisory, Red Hat Advisory). Fedora has also released security updates to address this vulnerability in affected packages (Fedora Update).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

node-follow-redirects

Affected

bullseye

node-follow-redirects

Affected

sid

node-follow-redirects: 1.15.6+~1.14.4-1

Fixed

trixie

node-follow-redirects: 1.15.6+~1.14.4-1

Fixed

Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-vjh5-4x84-xrqpMEDIUM6.3
  • JavaScript logoJavaScript
  • @nuxt/nitro-server
NoYesOct 22, 2026
CVE-2026-114606MEDIUM5.6
  • JavaScript logoJavaScript
  • draw.io
NoYesOct 22, 2026
GHSA-x562-297c-g43gMEDIUM5.4
  • JavaScript logoJavaScript
  • electron
NoYesOct 22, 2026
GHSA-2p8c-gr87-2676MEDIUM4.2
  • JavaScript logoJavaScript
  • electron
NoYesOct 22, 2026
GHSA-m5mm-p8h7-m29vLOWN/A
  • JavaScript logoJavaScript
  • serialize-javascript
NoYesOct 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management