A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-29441

CVE-2021-29441: Alibaba Nacos Auth Bypass Vulnerability

CVE-2021-29441 is an authentication bypass flaw in Alibaba Nacos that allows attackers to skip authentication checks via user-agent spoofing. This article covers the technical details, affected versions, and mitigations.

Published: March 6, 2026

CVE-2021-29441 Overview

CVE-2021-29441 is an authentication bypass vulnerability in Alibaba Nacos, a platform designed for dynamic service discovery, configuration, and service management. In Nacos versions prior to 1.4.1, when authentication is enabled (-Dnacos.core.auth.enabled=true), the AuthFilter servlet filter responsible for enforcing authentication contains a backdoor mechanism. This backdoor allows requests to bypass authentication checks entirely by spoofing the User-Agent HTTP header, enabling attackers to gain full administrative access to the Nacos server without valid credentials.

Critical Impact

This vulnerability allows any unauthenticated remote attacker to carry out any administrative tasks on the Nacos server, potentially compromising all managed services and configurations.

Affected Products

  • Alibaba Nacos versions prior to 1.4.1
  • Nacos deployments with authentication enabled (-Dnacos.core.auth.enabled=true)
  • All platforms running vulnerable Nacos versions

Discovery Timeline

  • 2021-04-27 - CVE-2021-29441 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-29441

Vulnerability Analysis

This vulnerability stems from a severe design flaw in the authentication mechanism of Alibaba Nacos. The AuthFilter servlet filter, which is responsible for validating authentication credentials when Nacos is configured with authentication enabled, contains an intentional bypass mechanism that relies on the User-Agent HTTP header for identification of internal server-to-server communication.

The vulnerability is classified under CWE-290 (Authentication Bypass by Spoofing), which describes scenarios where an attacker can bypass authentication by forging or manipulating identity credentials. In this case, the User-Agent header serves as an implicit trust mechanism that was never intended to be exposed to external users but can be trivially exploited.

When exploited, attackers gain complete administrative control over the Nacos server, enabling them to modify service configurations, access sensitive data, register malicious services, and potentially pivot to other systems within the managed infrastructure.

Root Cause

The root cause of CVE-2021-29441 lies in the implementation of the AuthFilter class, which includes a hardcoded check for specific User-Agent values. When the filter detects a matching User-Agent string (intended for internal Nacos server communication), it bypasses all authentication validation and grants the request full access. This design assumes that the User-Agent header cannot be controlled by external attackers—a fundamentally flawed security assumption since HTTP headers are fully controllable by clients.

Attack Vector

The attack vector for this vulnerability is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by sending HTTP requests to the Nacos API with a crafted User-Agent header that matches the internal server identifier. This allows the attacker to:

  1. Bypass the authentication filter entirely
  2. Access all administrative API endpoints
  3. Create, modify, or delete service configurations
  4. Register malicious services within the Nacos cluster
  5. Extract sensitive configuration data including database credentials and API keys

The exploitation is straightforward and can be performed using standard HTTP tools such as curl, Burp Suite, or custom scripts. Since the vulnerability relies solely on header manipulation, no complex exploit chains or additional vulnerabilities are required.

Detection Methods for CVE-2021-29441

Indicators of Compromise

  • Unusual User-Agent strings in web server access logs that match Nacos internal server identifiers
  • Unauthenticated access to administrative API endpoints such as /nacos/v1/auth/users or /nacos/v1/cs/configs
  • Unexpected configuration changes or service registrations in the Nacos console
  • Access logs showing administrative operations without corresponding authentication events

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block requests with suspicious User-Agent headers targeting Nacos
  • Monitor authentication logs for bypass attempts and anomalous access patterns to protected endpoints
  • Deploy network traffic analysis to identify HTTP requests to Nacos with known exploit patterns
  • Configure SIEM alerts for administrative API calls that lack corresponding successful authentication events

Monitoring Recommendations

  • Enable detailed access logging on Nacos servers and forward logs to centralized SIEM for analysis
  • Implement real-time alerting for any administrative configuration changes within the Nacos platform
  • Monitor network traffic to Nacos instances for requests originating from unexpected source IPs
  • Conduct periodic audits of service registrations and configurations for unauthorized modifications

How to Mitigate CVE-2021-29441

Immediate Actions Required

  • Upgrade Alibaba Nacos to version 1.4.1 or later immediately to remediate the vulnerability
  • Place Nacos servers behind a reverse proxy or firewall that strips or validates User-Agent headers
  • Restrict network access to Nacos administrative interfaces to trusted IP ranges only
  • Review access logs for evidence of exploitation and investigate any suspicious administrative actions
  • Audit all service configurations and user accounts for unauthorized changes

Patch Information

Alibaba has addressed this vulnerability in Nacos version 1.4.1. The fix removes the User-Agent-based bypass mechanism from the AuthFilter class, ensuring that all requests must properly authenticate regardless of header values. Organizations should upgrade to version 1.4.1 or later as soon as possible. The patch details can be reviewed in the GitHub Pull Request.

Workarounds

  • Deploy a reverse proxy (such as nginx or HAProxy) in front of Nacos that overwrites or sanitizes the User-Agent header before forwarding requests
  • Implement network segmentation to restrict access to Nacos servers from trusted networks only
  • Use IP-based allowlisting at the network or firewall level to limit who can reach the Nacos API
  • If authentication cannot be enforced, consider disabling external network access to Nacos until patching is complete
bash
# Example nginx configuration to sanitize User-Agent headers
location /nacos/ {
    proxy_pass http://nacos-backend:8848/nacos/;
    proxy_set_header User-Agent "sanitized-client";
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechAlibaba Nacos

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability94.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-290
  • Technical References
  • GitHub Security Advisory

  • GitHub Issue Discussion
  • Vendor Resources
  • GitHub Pull Request
  • Related CVEs
  • CVE-2021-29442: Alibaba Nacos Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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