MediumGHSA-jchw-25xp-jwwcCVE-2023-26159

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
Update to the fixed version for your release line, for example:npm install follow-redirects@1.15.4

Details

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.