GitHub Advisoryadvisory · npm

GHSA-jchw-25xp-jwwc Follow Redirects improperly handles URLs in the url.parse() function

MEDIUM Published 2024-01-02 Modified 2025-11-04 Official page ↗
Aliases
CVE-2023-26159
Ecosystem
npm
Packages
follow-redirects
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-20, CWE-601
Reviewed
2024-01-08

Affected packages

• npm follow-redirects: < 1.15.4 → fixed in 1.15.4

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.

Related

Alias · CVE (1)

  • CVE-2023-26159 Versions of the package follow-redirects before 1.15.4 are vulnerable to Improper Input Validation due to the improper handling of URLs by… vulnerability

Weakness · CWE (2)

  • CWE-20 Improper Input Validation weakness
  • CWE-601 URL Redirection to Untrusted Site weakness

References