LiveActive security incident?Get immediate response
CVE Record

CVE-2026-27571: nats-server websockets are vulnerable to pre-auth memory DoS

NATS-Server is a High-Performance server for NATS.io, a cloud and edge native messaging system. The WebSockets handling of NATS messages handles compressed messages via the WebSockets negotiated compression. Prior to versions 2.11.2 and 2.12.3, the implementation bound the memory size of a NATS message but did not independently bound the memory consumption of the memory stream when constructing a NATS message which might then fail validation for size reasons. An attacker can use a compression bomb to cause excessive memory consumption, often resulting in the operating system terminating the server process. The use of compression is negotiated before authentication, so this does not require valid NATS credentials to exploit. The fix, present in versions 2.11.2 and 2.12.3, was to bounds the decompression to fail once the message was too large, instead of continuing on. The vulnerability only affects deployments which use WebSockets and which expose the network port to untrusted end-points.

MediumCVSS 5.9Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2026-27571 can let an unauthenticated remote attacker crash a vulnerable NATS server by abusing WebSocket compression. The business impact is service disruption for applications relying on NATS messaging. Risk is limited to deployments that enable WebSockets and expose that port to untrusted clients.

Executive priority

Prioritize patching exposed WebSocket-enabled NATS servers. Treat internal-only deployments as lower urgency, but still schedule remediation. The main risk is messaging outage, not data theft or code execution based on current public information.

Technical view

nats-server WebSocket handling could consume excessive memory while decompressing a message before final size validation. A compression bomb can exhaust memory, often causing the OS to terminate the process. Affected versions are listed as nats-server before 2.11.12 and 2.12.0-RC.1 through before 2.12.3. CWE-409 and CWE-770 apply.

Likely exposure

Exposure is likely only where nats-server WebSockets are enabled and reachable by untrusted networks or clients. Standard NATS listener exposure without WebSockets is not described as affected in the provided sources.

Exploitation context

The issue is pre-authentication because WebSocket compression negotiation occurs before NATS credentials are required. CVSS is 5.9 with high availability impact and high attack complexity. The provided sources do not report active exploitation, and CISA KEV status is false.

Researcher notes

The advisory describes unbounded decompression memory use before message size rejection. The fix bounds decompression and fails once the message is too large. Avoid assuming all nats-server deployments are affected; WebSockets and untrusted reachability are key exposure conditions.

Mitigation direction

  • Upgrade nats-server to 2.11.12 or 2.12.3, as applicable.
  • Disable WebSockets if they are not required.
  • Restrict WebSocket listener access to trusted networks or clients.
  • Review the GitHub advisory and release notes for vendor-specific guidance.

Validation and detection

  • Inventory nats-server versions across production, staging, and edge environments.
  • Identify deployments with WebSockets enabled.
  • Confirm whether WebSocket ports are reachable from untrusted networks.
  • Verify upgraded instances report 2.11.12, 2.12.3, or later.
  • Monitor for unexpected nats-server restarts or memory exhaustion events.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-409: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · low confidence lookup

CWE-770: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-27571 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.9 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
5Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.9CVSS 3.1MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H2.23.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.9Medium
CVSS 3.1 vector shape for CVE-2026-27571Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
nats-ionats-server< 2.11.12, >= 2.12.0-RC.1, < 2.12.3Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-409 · source CWE mapping

Improper Handling of Highly Compressed Data (Data Amplification)

Improper Handling of Highly Compressed Data (Data Amplification) represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.

CWE-770 · source CWE mapping

Allocation of Resources Without Limits or Throttling

Allocation of Resources Without Limits or Throttling represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.