CVE-2023-26159:
Follow Redirects improperly handles URLs in the url.parse() function
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.2427%
CWE
Published
1/2/2024
Updated
1/31/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
follow-redirects | npm | < 1.15.4 | 1.15.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from two key functions: 1) The request function's fallback to url.parse()
after failed URL validation created an injection vector for malformed hostnames. 2) parseUrl
's direct use of url.parse()
without bracket validation allowed IP/domain spoofing. The patch added hostname validation (validateUrl
) and removed url.parse()
fallbacks, confirming these were the vulnerable paths. Commit 7a6567e specifically modified these areas to address CVE-2023-26159.