Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-45143

CVE-2023-45143: Node.js Undici Information Disclosure Flaw

CVE-2023-45143 is an information disclosure vulnerability in Node.js Undici that leaks cookie headers on cross-origin redirects. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 4, 2026

CVE-2023-45143 Overview

CVE-2023-45143 is an Information Leakage vulnerability in Undici, the HTTP/1.1 client written from scratch for Node.js. Prior to version 5.26.2, Undici cleared Authorization headers on cross-origin redirects but failed to clear Cookie headers, potentially exposing sensitive session data to third-party sites.

Critical Impact

Cookie headers may be leaked to third-party sites during cross-origin redirects, enabling session hijacking or credential theft when an attacker controls the redirect target.

Affected Products

  • Node.js Undici versions prior to 5.26.2
  • Fedora 37
  • Fedora 38
  • Fedora 39

Discovery Timeline

  • 2023-10-12 - CVE-2023-45143 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-45143

Vulnerability Analysis

This vulnerability stems from an inconsistency between the Fetch specification and Undici's implementation of HTTP header handling during cross-origin redirects. While browsers treat Cookie headers as forbidden request headers (disallowing them in RequestInit.headers), Undici handles headers more liberally than the specification dictates.

When a request is redirected to a different origin, Undici properly cleared the Authorization header to prevent credential leakage. However, the Cookie header was not cleared in the same manner, creating a gap where session cookies intended for the original domain could be inadvertently sent to a different domain.

This disconnect between specification assumptions and Undici's implementation creates a scenario where cookies leak to unintended recipients, particularly dangerous when:

  • An open redirector vulnerability exists on the original domain
  • An attacker can manipulate redirect targets
  • The application makes fetch requests that follow redirects across origins

Root Cause

The root cause is incomplete implementation of cross-origin redirect security controls in Undici's fetch implementation. While the Authorization header was properly sanitized on cross-origin redirects per the Fetch specification, the implementation overlooked the Cookie and Host headers. In browser environments, these headers are forbidden request headers and cannot be set manually, but Undici's more permissive header handling allowed them to persist across redirect boundaries.

Attack Vector

The attack vector is network-based, requiring user interaction where a victim's application using Undici makes a fetch request that gets redirected to an attacker-controlled domain. An attacker could exploit this by:

  1. Identifying an open redirector on a trusted domain
  2. Crafting a malicious URL that redirects to an attacker-controlled server
  3. Tricking the victim application into making a request to the open redirector
  4. Capturing the leaked cookies on the attacker's server
javascript
   if (!sameOrigin(requestCurrentURL(request), locationURL)) {
     // https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
     request.headersList.delete('authorization')

+    // "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement.
+    request.headersList.delete('cookie')
+    request.headersList.delete('host')
   }

   // 14. If request's body is non-null, then set request's body to the first return

Source: GitHub Commit e041de3

Detection Methods for CVE-2023-45143

Indicators of Compromise

  • Unexpected HTTP requests from your Node.js application to external domains containing session cookies
  • Log entries showing cross-origin redirects that include Cookie headers in outbound requests
  • Third-party domains receiving authenticated requests that should have been stripped of credentials

Detection Strategies

  • Audit your Node.js applications for Undici versions below 5.26.2 using npm list undici or dependency scanning tools
  • Review application logs for cross-origin redirect chains that may expose sensitive headers
  • Implement network monitoring to detect cookie headers in outbound cross-origin requests
  • Use SentinelOne Singularity to monitor for anomalous network behavior from Node.js processes

Monitoring Recommendations

  • Enable verbose logging for HTTP client activity in production environments to track redirect behavior
  • Configure web application firewalls to alert on requests containing cookies destined for unexpected domains
  • Implement runtime application self-protection (RASP) to detect and block sensitive header leakage

How to Mitigate CVE-2023-45143

Immediate Actions Required

  • Upgrade Undici to version 5.26.2 or later immediately using npm update undici
  • Audit all Node.js applications in your environment for vulnerable Undici versions
  • Review applications that make cross-origin requests and assess potential exposure
  • Consider implementing additional cookie security measures such as SameSite attributes

Patch Information

The vulnerability was patched in Undici version 5.26.2. The fix adds explicit deletion of Cookie and Host headers when requests are redirected to a different origin, aligning Undici's behavior with browser security expectations. The patch is available in the GitHub Release v5.26.2.

For detailed security information, refer to the GitHub Security Advisory GHSA-wqq4-5wpv-mx2g.

Workarounds

  • There are no known workarounds for this vulnerability - upgrading is required
  • As a temporary measure, avoid making fetch requests that may follow redirects to untrusted domains
  • Implement strict redirect policies at the application level to limit redirect following
bash
# Upgrade Undici to the patched version
npm update undici

# Verify the installed version
npm list undici

# For yarn users
yarn upgrade undici@^5.26.2

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechNodejs

  • SeverityLOW

  • CVSS Score3.5

  • EPSS Probability0.29%

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

  • NVD-CWE-noinfo
  • Technical References
  • GitHub Release v5.26.2

  • GitHub Security Advisory GHSA-q768-x9m6-m9qp

  • HackerOne Report #2166948

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-wqq4-5wpv-mx2g
  • Related CVEs
  • CVE-2023-32005: Node.js Information Disclosure Vulnerability

  • CVE-2022-35255: Node.js WebCrypto Information Disclosure

  • CVE-2024-21890: Node.js Information Disclosure Flaw

  • CVE-2022-32222: Node.js Information Disclosure Vulnerability
Default Legacy - Prefooter | 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