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-2022-0235

CVE-2022-0235: Node-fetch Information Disclosure Flaw

CVE-2022-0235 is an information disclosure vulnerability in Node-fetch that exposes sensitive information to unauthorized actors. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 17, 2026

CVE-2022-0235 Overview

CVE-2022-0235 is an information exposure vulnerability affecting the node-fetch library for Node.js. The vulnerability allows sensitive information to be exposed to unauthorized actors through improper handling of redirect responses, potentially leaking cookies and authorization headers to third-party domains when following cross-origin redirects.

Critical Impact

Applications using vulnerable versions of node-fetch may inadvertently leak sensitive authentication credentials including cookies and authorization headers to malicious third-party servers when processing redirect responses.

Affected Products

  • node-fetch_project node-fetch
  • siemens sinec_ins
  • debian debian_linux

Discovery Timeline

  • 2022-01-16 - CVE CVE-2022-0235 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-0235

Vulnerability Analysis

This vulnerability stems from improper handling of HTTP redirect responses in the node-fetch library. When a request is made to a URL that returns a redirect response (3xx status code) pointing to a different origin, the library fails to properly strip sensitive headers before following the redirect. This allows authorization headers and cookies originally intended for the first server to be transmitted to the redirect destination.

The vulnerability is classified under CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) and CWE-601 (URL Redirection to Untrusted Site). This combination indicates both the information disclosure aspect and the underlying open redirect behavior that enables the attack.

Root Cause

The root cause lies in the redirect handling logic within node-fetch. When processing HTTP redirects, the library should sanitize request headers to remove authentication credentials before making requests to different origins. The vulnerable implementation failed to properly clear sensitive headers like Authorization and cookies when the redirect target was on a different domain than the original request.

Attack Vector

An attacker can exploit this vulnerability through a network-based attack requiring user interaction. The attack scenario involves:

  1. The attacker controls a malicious server or compromises a server that the victim application makes requests to
  2. When the victim application sends an authenticated request (containing authorization headers or cookies) to this server, the attacker's server responds with an HTTP redirect to an attacker-controlled destination
  3. The vulnerable node-fetch library follows the redirect while preserving the sensitive authentication headers
  4. The attacker's destination server receives and captures the victim's authentication credentials

This attack is particularly dangerous in server-side applications that fetch user-supplied URLs or interact with untrusted external services while authenticated.

Detection Methods for CVE-2022-0235

Indicators of Compromise

  • Unexpected outbound HTTP requests from application servers to unknown external domains following redirects
  • Authentication tokens or cookies appearing in logs from third-party servers
  • Unusual redirect chains in network traffic originating from Node.js applications
  • Server-side request logs showing credential headers being sent to unexpected destinations

Detection Strategies

  • Monitor network traffic for HTTP requests that follow redirects to external domains while carrying authorization headers
  • Implement application-level logging to track redirect chains and header propagation
  • Use dependency scanning tools to identify vulnerable versions of node-fetch in your codebase
  • Review application logs for unusual authentication patterns or credential exposure events

Monitoring Recommendations

  • Deploy network monitoring to detect cross-origin redirects with preserved authentication headers
  • Implement alerting for node-fetch library usage in production environments pending patch verification
  • Utilize Software Composition Analysis (SCA) tools to continuously monitor for vulnerable dependencies
  • Establish baseline network behavior to detect anomalous redirect patterns

How to Mitigate CVE-2022-0235

Immediate Actions Required

  • Update node-fetch to a patched version that properly strips sensitive headers on cross-origin redirects
  • Audit applications for usage patterns that may expose authentication credentials through redirects
  • Implement URL validation to restrict redirect destinations to trusted domains
  • Review and update dependency manifests to ensure patched versions are specified

Patch Information

A patch has been released by the node-fetch project to address this vulnerability. The fix is available in the GitHub commit 36e47e8a6406185921e4985dcbeff140d73eaa10. Organizations using Siemens SINEC INS should review the Siemens Security Advisory SSA-637483 for product-specific guidance. Debian Linux users should apply updates per the Debian LTS Announcement.

Workarounds

  • Configure redirect handling to manually follow redirects (redirect: 'manual') and implement custom logic to strip sensitive headers before following cross-origin redirects
  • Implement a wrapper around node-fetch that validates redirect destinations against an allowlist of trusted domains
  • Use network-level controls to restrict outbound connections from application servers to known trusted destinations
  • Consider alternative HTTP client libraries with more robust redirect handling if immediate patching is not possible
bash
# Configuration example
# Update node-fetch in package.json to patched version
npm update node-fetch

# Verify installed version
npm list node-fetch

# For yarn users
yarn upgrade node-fetch

# Audit dependencies for known vulnerabilities
npm audit

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechNode Fetch

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.65%

  • 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-200

  • CWE-601
  • Technical References
  • Huntr Bounty Listing

  • Debian LTS Announcement
  • Vendor Resources
  • Siemens Security Advisory

  • GitHub Commit Update
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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