Packages / follow-redirects / Security
Follow Redirects improperly handles URLs in the url.parse() function
Affected releases · follow-redirects
- 1.x1.0.0 – 1.15.3Fixed in 1.15.4
- 0.3.x and older0.0.1 – 0.3.0No fix, no longer updated
On 1.x, the newest line:
npm install follow-redirects@1.15.4Every release on a timeline
Affected
1.0.0 – 1.15.3
52 releases
Fixed
1.15.4 – 1.16.3
12 releases, latest
Affected
0.0.1 – 0.3.0
10 releases
What happens
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.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.