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

CVE-2022-33987: Got Package for Node.js SSRF Vulnerability

CVE-2022-33987 is an SSRF vulnerability in the Got package for Node.js that allows redirects to UNIX sockets, enabling potential unauthorized access. This article covers technical details, affected versions, and mitigation.

Published: February 18, 2026

CVE-2022-33987 Overview

CVE-2022-33987 is a security vulnerability in the got HTTP request library for Node.js that allows attackers to redirect requests to UNIX sockets. The got package before version 12.1.0 (also fixed in 11.8.5) fails to properly validate redirect destinations, enabling malicious servers to redirect HTTP requests to local UNIX socket paths. This could allow attackers to interact with local services that communicate via UNIX sockets, potentially bypassing network security controls.

Critical Impact

Applications using vulnerable versions of the got package may be tricked into communicating with unintended local services through UNIX socket redirects, potentially exposing sensitive data or enabling further attacks on internal services.

Affected Products

  • got versions prior to 12.1.0
  • got versions prior to 11.8.5 (on the 11.x branch)
  • Node.js applications using affected got versions

Discovery Timeline

  • 2022-06-18 - CVE-2022-33987 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-33987

Vulnerability Analysis

This vulnerability exists in the HTTP redirect handling mechanism of the got package. When the library follows HTTP redirects, it fails to validate whether the redirect target is a legitimate HTTP/HTTPS URL versus a UNIX socket path. UNIX sockets are a form of inter-process communication (IPC) commonly used on Linux and macOS systems for local services to communicate securely without network overhead.

The vulnerability allows a malicious HTTP server to return a redirect response pointing to a UNIX socket path (e.g., /var/run/docker.sock). The got library would then attempt to connect to this socket, effectively allowing the attacker to proxy requests through the victim application to local services. This is particularly dangerous in containerized environments where UNIX sockets like Docker's socket may be mounted and accessible.

Root Cause

The root cause of CVE-2022-33987 is insufficient validation of redirect URLs in the got HTTP client library. The library did not properly sanitize or restrict the protocol schemes and destination types when processing HTTP redirect responses (3xx status codes). This oversight allowed redirect URLs pointing to UNIX socket paths to be followed without verification.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker must control or compromise an HTTP server that a vulnerable application makes requests to. The attack flow is as follows:

  1. The victim application using a vulnerable got version makes an HTTP request to an attacker-controlled server
  2. The malicious server responds with an HTTP redirect (301, 302, 307, or 308) pointing to a UNIX socket path
  3. The got library follows the redirect and connects to the specified UNIX socket
  4. The attacker can now send arbitrary data to the local UNIX socket service through the victim application

This vulnerability could be chained with Server-Side Request Forgery (SSRF) attacks to access sensitive local services such as Docker daemon sockets, database sockets, or other IPC mechanisms.

Detection Methods for CVE-2022-33987

Indicators of Compromise

  • Unexpected connections to UNIX socket files from Node.js processes
  • HTTP redirect responses containing socket paths in application logs
  • Anomalous activity on local services that communicate via UNIX sockets
  • Network traffic patterns showing requests to external servers followed by local socket access

Detection Strategies

  • Implement Software Composition Analysis (SCA) to identify vulnerable got package versions in your dependency tree
  • Monitor application logs for redirect URLs containing UNIX socket paths or unusual protocols
  • Use runtime application security monitoring to detect unexpected UNIX socket connections
  • Audit package.json and package-lock.json files for got versions below 12.1.0 or 11.8.5

Monitoring Recommendations

  • Enable verbose logging for HTTP client libraries to capture redirect chains
  • Monitor file system access patterns for Node.js applications, particularly access to common socket paths like /var/run/docker.sock
  • Implement network egress monitoring to identify potentially malicious redirect servers
  • Use container security tools to detect unexpected socket access in containerized environments

How to Mitigate CVE-2022-33987

Immediate Actions Required

  • Upgrade the got package to version 12.1.0 or later for the 12.x branch
  • Upgrade to version 11.8.5 or later if using the 11.x branch
  • Audit all Node.js applications and their dependencies for vulnerable got versions
  • Review and restrict which services can access UNIX sockets in your environment

Patch Information

The vulnerability has been patched in got versions 12.1.0 and 11.8.5. The fix introduces proper validation of redirect destinations to prevent redirects to UNIX socket paths. Technical details of the patch can be found in the GitHub Pull Request #2047 and the version comparison between v12.0.3 and v12.1.0. The v11.8.5 release notes document the backported fix for the 11.x branch.

Workarounds

  • Implement application-level URL validation before making requests with got to block socket-based URLs
  • Use network policies or firewall rules to restrict which external servers your applications can communicate with
  • In containerized environments, avoid mounting UNIX sockets unless strictly necessary
  • Consider using a proxy or gateway that validates redirect destinations before forwarding requests
bash
# Update got package to patched version
npm update got

# Or install specific patched versions
npm install got@12.1.0
# For 11.x branch:
npm install got@11.8.5

# Verify installed version
npm list got

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

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechGot Project

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.81%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • NVD-CWE-noinfo
  • Vendor Resources
  • GitHub Code Comparison

  • GitHub Pull Request #2047

  • GitHub Release v11.8.5
  • Latest CVEs
  • CVE-2025-52793: Esselink.nu Settings CSRF Vulnerability

  • CVE-2025-52772: Virtual Moderator CSRF Vulnerability

  • CVE-2025-48279: WC MyParcel Belgium XSS Vulnerability

  • CVE-2025-39381: KiotViet Sync CSRF 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