What’s Vulnerable › Vulnerabilities
CVE-2023-26159: Follow Redirects improperly handles URLs in the url.parse() function
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-01-02 · updated 2026-06-17
- Weakness: CWE-20
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.
Affected products
- follow-redirects: before 1.15.4 — fixed in 1.15.4
- Npm Follow-Redirects: before 1.15.4 — fixed in 1.15.4
How to fix
Upgrade to a fixed version: follow-redirects 1.15.4; Npm Follow-Redirects 1.15.4. Check the vendor advisory for mitigations.
References
- https://github.com/follow-redirects/follow-redirects/issues/235
- https://github.com/follow-redirects/follow-redirects/pull/236
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZ425BFKNBQ6AK7I5SAM56TWON5OF2XM/
- https://security.snyk.io/vuln/SNYK-JS-FOLLOWREDIRECTS-6141137
- https://github.com/follow-redirects/follow-redirects/issues/235
- https://github.com/follow-redirects/follow-redirects/pull/236
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZ425BFKNBQ6AK7I5SAM56TWON5OF2XM/
- https://security.netapp.com/advisory/ntap-20241108-0002/
- https://security.snyk.io/vuln/SNYK-JS-FOLLOWREDIRECTS-6141137
Get alerted when CVE-2023-26159 or the next vulnerability affects your stack