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-2026-27571

CVE-2026-27571: NATS-Server WebSocket DoS Vulnerability

CVE-2026-27571 is a denial of service vulnerability in NATS-Server that allows attackers to exploit WebSocket compression bombs for excessive memory consumption. This article covers technical details, affected versions, and mitigation.

Published: February 27, 2026

CVE-2026-27571 Overview

CVE-2026-27571 is a denial of service vulnerability in NATS-Server, a high-performance server for the NATS.io cloud and edge native messaging system. The vulnerability exists in the WebSocket message handling implementation where compressed messages are processed via negotiated WebSocket compression. The implementation fails to independently bound memory consumption during the construction of NATS messages from compressed data streams, allowing attackers to exploit compression bombs to cause excessive memory consumption and crash the server process.

Critical Impact

Unauthenticated attackers can exploit this vulnerability to crash NATS-Server instances by sending specially crafted compressed WebSocket messages, causing operating system-level process termination due to memory exhaustion.

Affected Products

  • NATS-Server versions prior to 2.11.2
  • NATS-Server versions prior to 2.12.3
  • Deployments using WebSocket connections exposed to untrusted endpoints

Discovery Timeline

  • 2026-02-24 - CVE CVE-2026-27571 published to NVD
  • 2026-02-26 - Last updated in NVD database

Technical Details for CVE-2026-27571

Vulnerability Analysis

This vulnerability is classified under CWE-409 (Improper Handling of Highly Compressed Data) and represents a resource exhaustion attack vector. The NATS-Server WebSocket handler processes compressed messages through negotiated compression, but while the implementation enforces size bounds on the final NATS message, it fails to limit memory consumption during the decompression phase itself.

The core issue lies in the memory stream construction process. When a compressed WebSocket frame arrives, the server attempts to decompress it before validating the resulting message size. An attacker can craft a compression bomb—a small payload that expands dramatically when decompressed—causing the server to allocate excessive memory before the size validation check can reject the oversized message.

Critically, WebSocket compression is negotiated before authentication occurs in the NATS protocol. This means exploitation does not require valid NATS credentials, significantly lowering the barrier for attack. Any deployment exposing WebSocket ports to untrusted networks is vulnerable regardless of authentication configuration.

Root Cause

The root cause is improper handling of highly compressed data (CWE-409) in the WebSocket decompression logic. The implementation validated the size of the constructed NATS message after decompression completed, rather than enforcing limits during the decompression process itself. This allowed unbounded memory allocation when processing maliciously crafted compressed frames that had high compression ratios.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Establishing a WebSocket connection to the NATS-Server
  2. Negotiating compression during the WebSocket handshake (occurs before authentication)
  3. Sending a specially crafted compression bomb payload
  4. The server attempts to decompress the payload, consuming excessive memory
  5. The operating system terminates the server process due to memory exhaustion

The vulnerability specifically affects deployments where WebSocket ports are exposed to untrusted endpoints.

go
 	"strconv"
 	"strings"
 	"sync"
+	"sync/atomic"
 	"time"
 	"unicode/utf8"

Source: GitHub Commit f77fb7c

The fix introduces atomic operations to track and limit buffer size during frame decompression, failing fast once the decompressed data exceeds the allowable message size rather than continuing decompression.

Detection Methods for CVE-2026-27571

Indicators of Compromise

  • Sudden server process termination with out-of-memory conditions in system logs
  • Abnormally high memory utilization on NATS-Server processes preceding crashes
  • WebSocket connections from untrusted sources with unusual compression ratios
  • Repeated server restarts without corresponding legitimate traffic spikes

Detection Strategies

  • Monitor NATS-Server process memory usage for rapid, unexplained growth patterns
  • Implement network-level monitoring for WebSocket connections to NATS ports from untrusted sources
  • Review system logs (dmesg, journalctl) for OOM killer events targeting nats-server processes
  • Deploy application-level logging to track WebSocket connection establishment and compression negotiation

Monitoring Recommendations

  • Set memory utilization alerts for NATS-Server processes with aggressive thresholds
  • Monitor for repeated process restarts which may indicate ongoing exploitation attempts
  • Implement network traffic analysis to detect compressed payloads with anomalous size ratios
  • Enable detailed WebSocket connection logging to identify suspicious connection patterns

How to Mitigate CVE-2026-27571

Immediate Actions Required

  • Upgrade NATS-Server to version 2.11.2 or later for the 2.11.x branch
  • Upgrade NATS-Server to version 2.12.3 or later for the 2.12.x branch
  • Restrict WebSocket port access to trusted networks only if immediate patching is not possible
  • Review firewall rules to ensure NATS WebSocket endpoints are not exposed to untrusted sources

Patch Information

The vulnerability has been addressed in NATS-Server versions 2.11.2 and 2.12.3. The fix bounds the decompression operation to fail immediately once the message exceeds size limits, preventing unbounded memory allocation. Security patches are available through the official NATS-Server GitHub releases:

  • NATS-Server v2.11.12
  • NATS-Server v2.12.3

For detailed information, refer to the GitHub Security Advisory GHSA-qrvq-68c2-7grw.

Workarounds

  • Place NATS-Server WebSocket endpoints behind a reverse proxy that can filter compressed traffic
  • Disable WebSocket support entirely if not required for your deployment
  • Implement network segmentation to ensure WebSocket ports are only accessible from trusted internal networks
  • Deploy rate limiting on WebSocket connections to slow potential exploitation attempts
bash
# Example: Restrict WebSocket access using iptables
# Allow WebSocket traffic only from trusted subnet
iptables -A INPUT -p tcp --dport 443 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j DROP

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechNats Server

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-409
  • Technical References
  • GitHub Release v2.11.12

  • GitHub Release v2.12.3
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-qrvq-68c2-7grw
  • Related CVEs
  • CVE-2026-33219: NATS-Server WebSocket DoS Vulnerability

  • CVE-2026-33218: NATS-Server DoS Vulnerability

  • CVE-2026-29785: NATS-Server Leafnode DoS Vulnerability

  • CVE-2026-27889: NATS-Server WebSocket DOS 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