VDB
Sign up
MEDIUM6.1

GHSA-jchw-25xp-jwwc

Follow Redirects improperly handles URLs in the url.parse() function

Quick fix

GHSA-jchw-25xp-jwwc — follow-redirects: upgrade to the fixed version with the command below.

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/follow-redirects
Introduced in: 0Fixed in: 1.15.4
Fixnpm install follow-redirects@1.15.4

References