CVE-2023-26159
JSON

7.3high

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

Severity
7.3high CVSS:3.1 by snyk
Exploit likelihood
0.80% (higher than 57% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-jchw-25xp-jwwc

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

Product or packageVersionsReported by
follow-redirectsbefore 1.15.4CVE List
follow-redirects (npm)before 1.15.4GitHub Advisory Database
follow-redirects follow_redirectsbefore 1.15.4NVD

All scores

snyk7.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P
GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-20CWE-601

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Las versiones del paquete follow-redirects anteriores a la 1.15.4 son vulnerables a una validación de entrada incorrecta debido al manejo inadecuado de las URL por parte de la función url.parse(). Cuando la nueva URL() arroja un error, se puede manipular para malinterpretar el nombre de host. Un atacante podría aprovechar esta debilidad para redirigir el tráfico a un sitio malicioso, lo que podría provocar la divulgación de información, ataques de phishing u otras violaciones de seguridad.

References

https://security.snyk.io/vuln/SNYK-JS-FOLLOWREDIRECTS-6141137exploit, third-party-advisory, web
https://github.com/follow-redirects/follow-redirects/issues/235exploit, issue-tracking, web
https://github.com/follow-redirects/follow-redirects/pull/236issue-tracking, patch, web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZ425BFKNBQ6AK7I5SAM56TWON5OF2XM/
https://security.netapp.com/advisory/ntap-20241108-0002/
https://nvd.nist.gov/vuln/detail/CVE-2023-26159advisory
https://github.com/follow-redirects/follow-redirects/commit/7a6567e16dfa9ad18a70bfe91784c28653fbf19dweb
https://github.com/follow-redirects/follow-redirectspackage
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZ425BFKNBQ6AK7I5SAM56TWON5OF2XMweb
https://security.netapp.com/advisory/ntap-20241108-0002web

Sources

SourceRecordLicence
CVE ListCVE-2023-26159 changed 2025-11-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-jchw-25xp-jwwc changed 2026-09-10CC-BY-4.0
NVDCVE-2023-26159 changed 2026-06-17Public domain