Follow Redirects improperly handles URLs in the url.parse() function
GHSA-jchw-25xp-jwwc · CVE-2023-26159
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
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
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2023-26159
- WEB https://github.com/follow-redirects/follow-redirects/issues/235
- WEB https://github.com/follow-redirects/follow-redirects/pull/236
- WEB https://github.com/follow-redirects/follow-redirects/commit/7a6567e16dfa9ad18a70bfe91784c28653fbf19d
- PACKAGE https://github.com/follow-redirects/follow-redirects
- WEB https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZ425BFKNBQ6AK7I5SAM56TWON5OF2XM
- WEB https://security.netapp.com/advisory/ntap-20241108-0002
- WEB https://security.snyk.io/vuln/SNYK-JS-FOLLOWREDIRECTS-6141137
Ready to move
Start Securing
Free, no credit card | First findings in minutes