CVE-2026-27571
HIGH 7.5CVSS 3.1nats-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.
- Published
- 24 Feb 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-409CWE-770
- Also known as
- BIT-nats-2026-27571GHSA-qrvq-68c2-7grwGO-2026-4533
- Sources
- NVDJSONOSV GHSA-qrvq-68c2-7grwJSONOSV GO-2026-4533JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linuxfoundation | nats-servercpe:2.3:a:linuxfoundation:nats-server:*:*:*:*:*:*:*:* |
< 2.11.12 | 2.11.12 |
| NVD | linuxfoundation | nats-servercpe:2.3:a:linuxfoundation:nats-server:*:*:*:*:*:*:*:* |
>= 2.12.0, < 2.12.3 | 2.12.3 |
| OSV | Go | github.com/nats-io/nats-server/v2 | < 2.11.12 | 2.11.12 |
| OSV | Go | github.com/nats-io/nats-server/v2 | >= 2.12.0-RC.1, < 2.12.3 | 2.12.3 |
| OSV | Go | github.com/nats-io/nats-server | <= 1.4.1 | |
| OSV | Go | github.com/nats-io/nats-server | all versions | |
| OSV | Go | github.com/nats-io/nats-server/v2 | < 2.11.12; >= 2.12.0-RC.1, < 2.12.3 | 2.11.12, 2.12.3 |
References
- https://github.com/nats-io/nats-server/commit/f77fb7c4535e6727cc1a2899cd8e6bbdd8ba2017 · Patch, WEB, FIX
- https://github.com/nats-io/nats-server/releases/tag/v2.11.12 · Product, Release Notes, WEB
- https://github.com/nats-io/nats-server/releases/tag/v2.12.3 · Product, Release Notes, WEB
- https://github.com/nats-io/nats-server/security/advisories/GHSA-qrvq-68c2-7grw · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-27571 · ADVISORY
- https://github.com/nats-io/nats-server · PACKAGE
- https://pkg.go.dev/vuln/GO-2026-4533 · WEB
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 24 Feb 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Feb 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Feb 2026)