CVE-2023-26159: Follow Redirects improperly handles URLs in the url.parse() function
Versions of the package follow-redirects before 1.15.4 are vulnerable to Improper Input Validation due to the improper handling of URLs by the url.parse() function. When new URL() throws an error, it can be manipulated to misinterpret the hostname.
Published Jan 2, 2024 · Updated Nov 4, 2025
Affected packages
follow-redirects
- Ecosystem
- npm
- Affected
- < 1.15.4
- Fixed in
- 1.15.4
- Check
npm ls follow-redirects
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Versions of the package follow-redirects before 1.15.4 are vulnerable to Improper Input Validation due to the improper handling of URLs by the url.parse() function. When new URL() throws an error, it can be manipulated to misinterpret the hostname. An attacker could exploit this weakness to redirect traffic to a malicious site, potentially leading to information disclosure, phishing attacks, or other security breaches.
Credited to iainsproat.
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-26159
- https://github.com/follow-redirects/follow-redirects/issues/235
- https://github.com/follow-redirects/follow-redirects/pull/236
- https://security.snyk.io/vuln/SNYK-JS-FOLLOWREDIRECTS-6141137
- https://github.com/follow-redirects/follow-redirects/commit/7a6567e16dfa9ad18a70bfe91784c28653fbf19d
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ZZ425BFKNBQ6AK7I5SAM56TWON5OF2XM
- https://security.netapp.com/advisory/ntap-20241108-0002
- https://github.com/advisories/GHSA-jchw-25xp-jwwc
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-116689
follow-redirects: Cross-realm sensitiveHeaders arrays are discarded and custom credentials can follow redirects
high5.9Oct 30, 2026CVE-2026-111755
follow-redirects sensitiveHeaders regex escaping can expose credential headers
high8.2Oct 20, 2026CVE-2026-111756
follow-redirects array-form headers bypass cross-origin credential stripping
high8.2Oct 20, 2026CVE-2026-40895
follow-redirects leaks Custom Authentication Headers to Cross-Domain Redirect Targets
medium6.9Apr 14, 2026CVE-2024-28849
follow-redirects' Proxy-Authorization header kept across hosts
medium6.5Mar 14, 2024
