Follow Redirects improperly handles URLs in the url.parse() function
Published 2 Jan 2024 · Updated 10 Sept 2026
Affected package
- Affected
- <1.15.4
- Fixed in
- 1.15.4
npm install follow-redirects@1.15.4Details
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.
Is GHSA-jchw-25xp-jwwc in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected follow-redirects, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-26159
- Linkgithub.com/follow-redirects/follow-redirects/issues/235
- Linkgithub.com/follow-redirects/follow-redirects/pull/236
- Linkgithub.com/follow-redirects/follow-redirects/commit/7a6567e16dfa9ad18a70bfe91784c28653fbf19d
- Packagegithub.com/follow-redirects/follow-redirects
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZ425BFKNBQ6AK7I5SAM56TWON5OF2XM
- Linksecurity.netapp.com/advisory/ntap-20241108-0002
- Linksecurity.snyk.io/vuln/SNYK-JS-FOLLOWREDIRECTS-6141137
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.