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

CVE-2023-26159: Improper Input Validation

January 2, 2024 (updated January 8, 2024)

Versions of the package follow-redirects before 1.15.4 is 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/commit/7a6567e16dfa9ad18a70bfe91784c28653fbf19d
  • github.com/follow-redirects/follow-redirects/issues/235
  • github.com/follow-redirects/follow-redirects/pull/236
  • nvd.nist.gov/vuln/detail/CVE-2023-26159
  • 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

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 Wed, 14 May 2025 12:15:06 +0000.