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-0155

CVE-2022-0155: Follow-redirects Information Disclosure

CVE-2022-0155 is an information disclosure vulnerability in Follow-redirects that exposes private personal information to unauthorized actors. This article covers the technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-0155 Overview

CVE-2022-0155 is a sensitive data exposure vulnerability in the follow-redirects npm package, a popular Node.js library used to handle HTTP and HTTPS redirects. The vulnerability allows unauthorized exposure of private personal information when HTTP requests containing sensitive headers are redirected to a different domain. Specifically, the library failed to strip confidential headers like Cookie when following redirects across domains, potentially exposing session tokens and authentication credentials to unintended third-party hosts.

Critical Impact

Sensitive authentication headers including cookies can be leaked to unauthorized domains when following HTTP redirects, potentially leading to session hijacking and unauthorized access to user accounts.

Affected Products

  • follow-redirects (Node.js package) - versions prior to the security patch
  • Siemens SINEC INS - various versions including 1.0 and 1.0 SP1
  • Any application using vulnerable versions of the follow-redirects dependency

Discovery Timeline

  • 2022-01-10 - CVE-2022-0155 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-0155

Vulnerability Analysis

This vulnerability is classified as CWE-359 (Exposure of Private Personal Information to an Unauthorized Actor). The core issue stems from inadequate header sanitization during cross-domain redirects. When an HTTP client using follow-redirects makes a request to a domain that responds with a redirect to a different domain, the library should strip sensitive headers to prevent credential leakage. Prior to the fix, only the Authorization header was being removed during cross-domain redirects, while the Cookie header was preserved and sent to the redirect destination.

The vulnerability requires user interaction in that a victim must initiate a request that gets redirected, but the attack complexity is low as it only requires an attacker to control or influence the redirect destination. The impact is a high confidentiality breach with no integrity or availability impact.

Root Cause

The root cause lies in the incomplete implementation of header sanitization logic in the follow-redirects library. The original code only removed the Authorization header when detecting a cross-domain redirect, failing to account for other sensitive headers such as Cookie. This oversight meant that session tokens, authentication cookies, and other sensitive data stored in cookies would be forwarded to any domain the request was redirected to.

Attack Vector

An attacker can exploit this vulnerability by controlling a redirect destination or by performing a man-in-the-middle attack to inject redirect responses. When a legitimate application makes an HTTP request with cookies attached and follows a malicious redirect, the cookies are sent to the attacker-controlled domain. This network-based attack vector allows for remote exploitation without requiring authentication.

Attack scenarios include:

  • Compromised or malicious websites that redirect API requests to attacker-controlled domains
  • Open redirect vulnerabilities chained with this cookie leakage
  • DNS hijacking scenarios where legitimate domains redirect to malicious endpoints
javascript
     var redirectUrlParts = url.parse(redirectUrl);
     Object.assign(this._options, redirectUrlParts);
 
-    // Drop the Authorization header if redirecting to another domain
+    // Drop the confidential headers when redirecting to another domain
     if (!(redirectUrlParts.host === currentHost || isSubdomainOf(redirectUrlParts.host, currentHost))) {
-      removeMatchingHeaders(/^authorization$/i, this._options.headers);
+      removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
     }
 
     // Evaluate the beforeRedirect callback

Source: GitHub Commit 8b347cbcef7c7b72a6e9be20f5710c17d6163c22

The patch expands the header removal regex pattern from only matching authorization to matching both authorization and cookie headers, ensuring both sensitive credential types are stripped during cross-domain redirects.

Detection Methods for CVE-2022-0155

Indicators of Compromise

  • Unexpected outbound HTTP/HTTPS requests from your application to unknown or suspicious domains containing cookie headers
  • Network traffic logs showing session cookies or authentication tokens being sent to third-party domains
  • Application logs indicating redirect chains that cross trust boundaries with preserved authentication headers

Detection Strategies

  • Implement Software Composition Analysis (SCA) tools to identify vulnerable versions of follow-redirects in your dependency tree
  • Monitor network egress traffic for cookie header leakage to non-approved domains
  • Use npm audit or similar dependency scanning tools to flag CVE-2022-0155 in your Node.js projects
  • Review application logs for unexpected redirect patterns that may indicate exploitation attempts

Monitoring Recommendations

  • Configure network monitoring to alert on cookie headers being sent to domains outside your trusted list
  • Implement dependency vulnerability scanning in CI/CD pipelines to catch vulnerable package versions
  • Monitor for anomalous session activity that could indicate stolen cookies being used by attackers
  • Set up alerts for applications following excessive redirect chains that may indicate redirect-based attacks

How to Mitigate CVE-2022-0155

Immediate Actions Required

  • Update the follow-redirects package to the latest patched version immediately
  • Audit your package.json and package-lock.json files for both direct and transitive dependencies on follow-redirects
  • Review network logs for potential past exploitation of this vulnerability
  • Invalidate and rotate session tokens and cookies for any applications that may have been affected

Patch Information

The vulnerability has been addressed in a security patch available from the upstream maintainers. The fix modifies the header sanitization logic to include the Cookie header alongside the Authorization header when performing cross-domain redirects. Organizations should update to the patched version by running npm update follow-redirects or specifying the fixed version in their package dependencies.

For Siemens SINEC INS users, refer to the Siemens Security Advisory SSA-637483 for specific remediation guidance.

Additional resources:

  • GitHub Security Commit
  • Huntr Bounty Report

Workarounds

  • Manually strip sensitive headers before making requests that may result in redirects
  • Configure your HTTP client to disable automatic redirect following and handle redirects manually with proper header sanitization
  • Implement network-level controls to prevent requests with sensitive headers from reaching untrusted domains
  • Use a web application firewall (WAF) to block or sanitize outbound requests containing session cookies to non-approved destinations
bash
# Check for vulnerable follow-redirects versions in your project
npm audit | grep follow-redirects

# Update follow-redirects to the latest patched version
npm update follow-redirects

# Verify the 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.5

  • EPSS Probability0.90%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-359
  • Vendor Resources
  • Siemens Security Advisory SSA-637483

  • GitHub Commit Update

  • Huntr Bounty Report
  • Related CVEs
  • CVE-2024-28849: Follow-redirects Credential Leak Flaw

  • CVE-2023-26159: Follow-redirects Information Disclosure

  • CVE-2022-0536: Follow-redirects Information Disclosure Flaw
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