The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-26159

CVE-2023-26159: Follow-redirects Information Disclosure

CVE-2023-26159 is an information disclosure vulnerability in Follow-redirects caused by improper input validation. Attackers can exploit hostname misinterpretation to redirect traffic. This article covers affected versions, impact, and mitigation strategies.

Published: February 4, 2026

CVE-2023-26159 Overview

CVE-2023-26159 is an Improper Input Validation vulnerability affecting the follow-redirects package for Node.js. Versions prior to 1.15.4 are vulnerable due to improper handling of URLs by the url.parse() function. When new URL() throws an error, it can be manipulated to misinterpret the hostname, allowing attackers to redirect traffic to malicious sites. This weakness could lead to information disclosure, phishing attacks, or other security breaches.

Critical Impact

Attackers can exploit URL parsing inconsistencies to perform open redirect attacks, potentially redirecting users to malicious websites for credential theft or malware distribution.

Affected Products

  • follow-redirects (Node.js package) versions before 1.15.4
  • Applications using follow-redirects for HTTP redirect handling
  • Dependencies relying on follow-redirects (commonly used by axios, request, and other HTTP client libraries)

Discovery Timeline

  • 2024-01-02 - CVE-2023-26159 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2023-26159

Vulnerability Analysis

This vulnerability stems from the inconsistent behavior between the legacy url.parse() function and the WHATWG URL constructor in Node.js when handling malformed URLs. The follow-redirects package uses URL parsing to determine redirect destinations, and when certain edge-case URLs cause new URL() to throw an error, the package falls back to url.parse() which may interpret the URL differently—specifically misinterpreting the hostname component.

The security impact allows an attacker to craft a specially formatted URL that passes initial validation but redirects to an unintended destination. This is classified as CWE-20 (Improper Input Validation) and CWE-601 (URL Redirection to Untrusted Site), commonly known as an Open Redirect vulnerability.

Root Cause

The root cause lies in the discrepancy between URL parsing implementations in Node.js. The legacy url.parse() function handles certain malformed URLs differently than the WHATWG URL constructor. When follow-redirects encounters a URL that causes new URL() to throw an exception, it falls back to using url.parse(), which may extract a different hostname from the same URL string. This inconsistency allows attackers to bypass hostname validation checks by crafting URLs that are interpreted differently by each parser.

Attack Vector

The attack is network-based and requires user interaction. An attacker can exploit this vulnerability by:

  1. Crafting a malicious URL that exploits the parsing discrepancy between url.parse() and new URL()
  2. Embedding this URL in a legitimate-looking link that appears to point to a trusted domain
  3. When the follow-redirects library processes the redirect chain, it misinterprets the hostname
  4. The user is ultimately redirected to an attacker-controlled site

This technique is commonly used in phishing campaigns where victims believe they are navigating to a trusted site but are instead redirected to a malicious destination. The attacker can then harvest credentials, distribute malware, or perform other malicious actions while maintaining the appearance of legitimacy.

Detection Methods for CVE-2023-26159

Indicators of Compromise

  • Unusual redirect patterns in HTTP traffic where the final destination hostname differs unexpectedly from the initial request
  • Web application logs showing redirect chains with malformed or suspicious URLs containing special characters
  • User reports of being redirected to unexpected or suspicious websites from trusted applications
  • Network traffic analysis revealing connections to known malicious domains following legitimate application requests

Detection Strategies

  • Implement dependency scanning using tools like npm audit, Snyk, or OWASP Dependency-Check to identify vulnerable versions of follow-redirects
  • Monitor application logs for URL parsing errors or warnings related to the url.parse() function
  • Deploy web application firewalls (WAF) configured to detect and block open redirect attack patterns
  • Use Software Composition Analysis (SCA) tools to continuously monitor for vulnerable package versions in your codebase

Monitoring Recommendations

  • Enable verbose logging for HTTP redirect handling in applications using follow-redirects
  • Set up alerts for dependency vulnerability disclosures affecting follow-redirects and related packages
  • Monitor outbound network connections from applications for unexpected redirect destinations
  • Implement URL validation logging to capture instances where parsed URLs produce unexpected hostnames

How to Mitigate CVE-2023-26159

Immediate Actions Required

  • Upgrade follow-redirects to version 1.15.4 or later immediately
  • Run npm audit or yarn audit to identify affected projects in your environment
  • Review applications for transitive dependencies on follow-redirects (commonly included via axios, request, and other HTTP libraries)
  • Implement allowlisting for permitted redirect destinations where feasible

Patch Information

The vulnerability has been addressed in follow-redirects version 1.15.4. The fix ensures consistent URL parsing behavior and properly validates hostnames throughout the redirect process. The patch details are available in the GitHub Pull Request #236. Additional security advisories have been published by Snyk, Fedora, and NetApp.

Workarounds

  • Implement strict URL validation before passing URLs to follow-redirects, ensuring consistency between parsing methods
  • Configure a maximum redirect limit to reduce exposure to redirect chain attacks
  • Use an allowlist of permitted redirect domains to prevent redirects to untrusted hosts
  • Consider implementing server-side URL validation that normalizes URLs before processing
bash
# Update follow-redirects to patched version
npm update follow-redirects@1.15.4

# Or force resolution in package.json (npm 8.3+)
# Add to package.json:
# "overrides": {
#   "follow-redirects": ">=1.15.4"
# }

# Verify installed version
npm list follow-redirects

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechFollow Redirects

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-20

  • CWE-601
  • Technical References
  • GitHub Issue #235

  • Fedora Package Announcement

  • Snyk Vulnerability Report

  • NetApp Security Advisory
  • Vendor Resources
  • GitHub Pull Request #236
  • Related CVEs
  • CVE-2024-28849: Follow-redirects Credential Leak Flaw

  • CVE-2022-0536: Follow-redirects Information Disclosure Flaw

  • CVE-2022-0155: Follow-redirects Information Disclosure
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English