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
    • 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-2022-1650

CVE-2022-1650: Eventsource Information Disclosure Flaw

CVE-2022-1650 is an information disclosure vulnerability in Eventsource caused by improper removal of sensitive data before storage or transfer. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-1650 Overview

CVE-2022-1650 is a critical vulnerability affecting the eventsource Node.js library prior to version 2.0.2. The vulnerability stems from improper removal of sensitive information before storage or transfer, specifically failing to strip sensitive HTTP headers when following redirects to a different origin. This information disclosure flaw can lead to credential leakage when an attacker controls a redirect destination.

Critical Impact

Sensitive authentication headers including authorization tokens and cookies can be exposed to malicious third-party servers when eventsource follows redirects across origins, potentially enabling full account takeover or unauthorized access to protected resources.

Affected Products

  • eventsource for Node.js (versions prior to 2.0.2)
  • Debian Linux 10.0
  • Applications using vulnerable eventsource versions as a dependency

Discovery Timeline

  • 2022-05-12 - CVE-2022-1650 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-1650

Vulnerability Analysis

This vulnerability is classified under CWE-212 (Improper Removal of Sensitive Information Before Storage or Transfer). The eventsource library implements the EventSource interface for Server-Sent Events (SSE) in Node.js applications. When an SSE connection follows an HTTP redirect to a different origin, the library fails to sanitize sensitive headers from the outgoing request.

The vulnerability allows network-based exploitation requiring user interaction, where an attacker can intercept sensitive credentials by manipulating redirect destinations. The impact extends beyond the initial security context, potentially compromising confidentiality and integrity of data across multiple systems.

Root Cause

The root cause lies in the EventSource constructor within lib/eventsource.js. Prior to the fix, when the library followed HTTP redirects, it would preserve all custom headers—including authentication headers like Authorization and Cookie—regardless of whether the redirect destination was the same origin as the original request. This behavior violates security best practices for cross-origin requests, where sensitive credentials should never be transmitted to untrusted domains.

Attack Vector

An attacker can exploit this vulnerability through the following scenario:

  1. The victim's application establishes an EventSource connection to a legitimate server with authentication headers
  2. The attacker compromises or controls a server that can influence the redirect response
  3. When a redirect occurs pointing to an attacker-controlled server, the eventsource library forwards sensitive headers to the malicious destination
  4. The attacker captures authentication tokens, API keys, or session cookies from the misdirected request
javascript
  **/
 function EventSource (url, eventSourceInitDict) {
   var readyState = EventSource.CONNECTING
+  var headers = eventSourceInitDict && eventSourceInitDict.headers
+  var hasNewOrigin = false
   Object.defineProperty(this, 'readyState', {
     get: function () {
       return readyState

Source: GitHub Commit Update

The patch introduces origin tracking via the hasNewOrigin variable to detect cross-origin redirects and strip sensitive headers when the destination differs from the original request origin.

Detection Methods for CVE-2022-1650

Indicators of Compromise

  • Outbound SSE connections redirecting to unexpected external domains
  • Authorization or authentication headers appearing in network traffic to third-party servers
  • Unusual cross-origin redirect patterns in application logs
  • Authentication tokens or cookies being logged by external services

Detection Strategies

  • Monitor npm dependency trees for eventsource versions below 2.0.2 using npm audit or similar tools
  • Implement network-level monitoring for SSE connections that redirect across origins
  • Review application logs for EventSource redirect chains involving external domains
  • Deploy web application firewalls (WAF) rules to detect sensitive header leakage in cross-origin redirects

Monitoring Recommendations

  • Enable verbose logging for EventSource connections in development and staging environments
  • Set up alerts for dependency vulnerability reports affecting eventsource
  • Monitor for anomalous authentication failures that could indicate credential theft
  • Track outbound network connections from Node.js applications to unexpected destinations

How to Mitigate CVE-2022-1650

Immediate Actions Required

  • Update eventsource to version 2.0.2 or later immediately using npm update eventsource
  • Audit applications for direct and transitive dependencies on vulnerable eventsource versions
  • Rotate any authentication credentials that may have been exposed through SSE connections
  • Review network logs for potential past exploitation attempts

Patch Information

The security fix is available in eventsource version 2.0.2 and later. The patch, committed with hash 10ee0c4881a6ba2fe65ec18ed195ac35889583c4, introduces origin tracking to detect cross-origin redirects and properly strips sensitive headers before forwarding requests. Users should update using their package manager:

For detailed information about the vulnerability disclosure, see the Huntr Bounty Details. Debian users should refer to the Debian LTS Announcement for distribution-specific patches.

Workarounds

  • Avoid using EventSource connections with sensitive headers when connecting to servers that may issue redirects
  • Implement application-level validation of redirect destinations before allowing EventSource connections
  • Configure network policies to prevent SSE connections from following redirects to untrusted domains
  • Consider using alternative SSE implementations that properly handle cross-origin credential stripping
bash
# Update eventsource to patched version
npm update eventsource

# Verify installed version
npm list eventsource

# Audit for other vulnerable dependencies
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/TechEventsource

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability1.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-212
  • Technical References
  • Debian LTS Announcement
  • Vendor Resources
  • GitHub Commit Update

  • Huntr Bounty Details
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE 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