CVE-2026-27571
published medium CVSS 3.1 · 5.9nats-server websockets are vulnerable to pre-auth memory DoS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nats-io | — | nats-server< 2.11.12 · >= 2.12.0-RC.1, < 2.12.3 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nats-io | nats-server | < 2.11.12 (affected)>= 2.12.0-RC.1, < 2.12.3 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-409 CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)
- CWE-770 CWE-770: Allocation of Resources Without Limits or Throttling
References
4Provider assertions
2GitHub_M · cna
nats-server websockets are vulnerable to pre-auth memory DoS
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c3ce2bb665df5ad49bf8334afe357bb92d7a3a73aba8f2b99bae92f5c8b81094
- Ingested
- 23 Sep 2026, 09:07:41 UTC
- Source record
- Official CVE record