Follow Redirects improperly handles URLs in the url.parse() function
Moderate severity
GitHub Reviewed
Published
Jan 2, 2024
to the GitHub Advisory Database
•
Updated Jan 31, 2024
Description
Published by the National Vulnerability Database
Jan 2, 2024
Published to the GitHub Advisory Database
Jan 2, 2024
Reviewed
Jan 8, 2024
Last updated
Jan 31, 2024
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.
References