Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. follow-redirects
  4. ›
  5. CVE-2023-26159

CVE-2023-26159: Follow Redirects improperly handles URLs in the url.parse() function

January 2, 2024 (updated November 4, 2025)

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

  • github.com/advisories/GHSA-jchw-25xp-jwwc
  • github.com/follow-redirects/follow-redirects
  • github.com/follow-redirects/follow-redirects/commit/7a6567e16dfa9ad18a70bfe91784c28653fbf19d
  • github.com/follow-redirects/follow-redirects/issues/235
  • github.com/follow-redirects/follow-redirects/pull/236
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZ425BFKNBQ6AK7I5SAM56TWON5OF2XM
  • nvd.nist.gov/vuln/detail/CVE-2023-26159
  • security.netapp.com/advisory/ntap-20241108-0002
  • security.snyk.io/vuln/SNYK-JS-FOLLOWREDIRECTS-6141137

Code Behaviors & Features

Detect and mitigate CVE-2023-26159 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.15.4

Fixed versions

  • 1.15.4

Solution

Upgrade to version 1.15.4 or above.

Impact 7.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

npm/follow-redirects/CVE-2023-26159.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 14 Dec 2025 00:19:30 +0000.