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
    • 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-2021-22884

CVE-2021-22884: Node.js DNS Rebinding Auth Bypass Flaw

CVE-2021-22884 is a DNS rebinding authentication bypass flaw in Node.js that allows attackers to circumvent security protections using the localhost6 domain. This article covers technical details, affected versions, and steps.

Published: February 25, 2026

CVE-2021-22884 Overview

CVE-2021-22884 is a DNS rebinding vulnerability affecting Node.js versions before 10.24.0, 12.21.0, 14.16.0, and 15.10.0. The vulnerability exists because the Node.js Inspector whitelist includes "localhost6" as an allowed hostname. When localhost6 is not defined in the system's /etc/hosts file, it becomes an ordinary domain that resolves via DNS over the network rather than locally. This allows attackers who control the victim's DNS server or can spoof DNS responses to bypass DNS rebinding protections and execute the attack previously described in CVE-2018-7160.

Critical Impact

Attackers can bypass Node.js Inspector DNS rebinding protections to gain unauthorized access to the debugging interface, potentially leading to remote code execution on affected systems.

Affected Products

  • Node.js versions before 10.24.0, 12.21.0, 14.16.0, and 15.10.0
  • Fedora 32, 33, and 34
  • NetApp Active IQ Unified Manager, E-Series Performance Analyzer, OnCommand Insight, OnCommand Workflow Automation, and SnapCenter
  • Oracle GraalVM Enterprise Edition (19.3.5, 20.3.1.2, 21.0.0.2)
  • Oracle JD Edwards EnterpriseOne Tools, MySQL Cluster, NoSQL Database
  • Oracle PeopleSoft Enterprise PeopleTools (8.58, 8.59)
  • Siemens SINEC Infrastructure Network Services

Discovery Timeline

  • 2021-03-03 - CVE-2021-22884 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-22884

Vulnerability Analysis

This DNS rebinding vulnerability targets the Node.js Inspector debugging interface. The Inspector provides a powerful debugging API that, if accessed by unauthorized parties, can lead to arbitrary code execution. Node.js implements DNS rebinding protection by maintaining a whitelist of allowed hostnames that can access the Inspector interface.

The flaw stems from the inclusion of localhost6 in this whitelist. On systems where localhost6 is properly defined in /etc/hosts (typically mapping to ::1), this poses no security risk as DNS queries for localhost6 resolve locally. However, on many systems—particularly those not configured for IPv6 or those with minimal /etc/hosts configurations—localhost6 is not defined locally.

When localhost6 is absent from /etc/hosts, the system performs a standard DNS lookup over the network to resolve the hostname. This network-based resolution creates an attack vector: an adversary who can influence DNS responses (either by controlling the victim's DNS server or through DNS spoofing) can make localhost6 resolve to an arbitrary IP address.

Root Cause

The root cause is an overly permissive hostname whitelist in the Node.js Inspector's DNS rebinding protection mechanism. The assumption that localhost6 would always resolve locally is incorrect across diverse system configurations. This represents a reliance on reverse DNS resolution for security decisions (CWE-350), where the software trusts hostname-to-IP mappings without verifying they originate from a trusted source.

Attack Vector

The attack requires network access and involves the following steps:

  1. The attacker identifies a target running Node.js with the Inspector interface enabled
  2. The attacker either controls the victim's DNS server or positions themselves to perform DNS spoofing
  3. The attacker configures DNS to resolve localhost6 to an IP address they control
  4. The victim's browser or application makes a request to localhost6, which bypasses the DNS rebinding protection
  5. The attacker's malicious response can then interact with the Node.js Inspector interface
  6. Through the Inspector protocol, the attacker can execute arbitrary JavaScript code in the Node.js process context

This attack is a variant of CVE-2018-7160 but leverages the trusted localhost6 domain to bypass the protections that were implemented to address the original vulnerability. The attack requires user interaction and high attack complexity due to the DNS control requirements.

Detection Methods for CVE-2021-22884

Indicators of Compromise

  • DNS queries for localhost6 from systems where it is not defined in /etc/hosts
  • Unexpected connections to the Node.js Inspector port (default 9229) from external IP addresses
  • DNS responses for localhost6 pointing to non-local IP addresses
  • WebSocket connections to the Inspector endpoint from untrusted origins

Detection Strategies

  • Monitor DNS query logs for localhost6 resolution requests from Node.js application servers
  • Implement network monitoring rules to detect Inspector protocol traffic originating from external networks
  • Review /etc/hosts files on systems running Node.js to verify localhost6 mappings exist
  • Deploy DNS security solutions capable of detecting DNS rebinding attempts

Monitoring Recommendations

  • Enable logging on Node.js Inspector interfaces when used in development environments
  • Implement network segmentation to restrict Inspector access to authorized networks only
  • Deploy DNS monitoring to identify suspicious resolution patterns for localhost variants
  • Use SIEM correlation rules to detect potential DNS rebinding attack patterns

How to Mitigate CVE-2021-22884

Immediate Actions Required

  • Upgrade Node.js to patched versions: 10.24.0, 12.21.0, 14.16.0, or 15.10.0 and later
  • Add localhost6 to /etc/hosts with proper local IPv6 address mapping as a temporary mitigation
  • Disable Node.js Inspector in production environments unless explicitly required
  • Implement network-level controls to restrict access to Inspector ports

Patch Information

Node.js released security patches in February 2021 addressing this vulnerability. The Node.js February 2021 Security Releases announcement provides detailed information about the fix. Additional vendor patches are available from Oracle April 2021 Security Alerts, Oracle July 2021 Security Alerts, and Oracle October 2021 Security Alerts for affected Oracle products. Siemens has published Security Advisory SSA-389290 for SINEC Infrastructure Network Services.

Workarounds

  • Add the following entry to /etc/hosts: ::1 localhost6 to ensure local resolution
  • Use firewall rules to block external access to Node.js Inspector ports (typically 9229)
  • Run Node.js without the --inspect flag in production environments
  • Implement DNS security measures to prevent DNS spoofing attacks on your network
bash
# Add localhost6 to /etc/hosts as a workaround
echo "::1 localhost6" | sudo tee -a /etc/hosts

# Block external access to Inspector port
sudo iptables -A INPUT -p tcp --dport 9229 -s 127.0.0.1 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 9229 -j DROP

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechNodejs

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.50%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-350

  • NVD-CWE-Other
  • Technical References
  • HackerOne Report #1069487

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Advisory NTAP-20210416-0001

  • NetApp Advisory NTAP-20210723-0001
  • Vendor Resources
  • Siemens Security Advisory SSA-389290

  • Node.js February 2021 Releases

  • Node.js March 2018 Vulnerability

  • Oracle July 2021 Security Alerts

  • Oracle April 2021 Security Alerts

  • Oracle October 2021 Security Alerts
  • Related CVEs
  • CVE-2023-38552: Node.js Authorization Bypass Vulnerability

  • CVE-2023-32002: Node.js Auth Bypass Vulnerability

  • CVE-2023-32006: Node.js Policy Bypass Vulnerability

  • CVE-2021-44532: Node.js Auth Bypass 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