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

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2026-02-24T15:59:17.926Z
- Modified: 2026-09-10T03:50:59.521Z
- Also known as: GHSA-qrvq-68c2-7grw, BIT-NATS-2026-27571, GO-2026-4533
- Related: CVE-2026-33219, CGA-5692-h4qc-9hgr
- Weaknesses: CWE-409, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- nats-io nats-server: < 2.11.12; >= 2.12.0-RC.1, < 2.12.3
- github.com/nats-io/nats-server/v2 (Go): before 2.11.12; from 2.12.0-RC.1 before 2.12.3
- github.com/nats-io/nats-server (Go): up to 1.4.1; all versions
- linuxfoundation nats-server: before 2.11.12; from 2.12.0 before 2.12.3
- nats (Bitnami): before 2.11.12; from 2.12.0 before 2.12.3

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/nats-io/nats-server/security/advisories/GHSA-qrvq-68c2-7grw> (advisory, vendor-advisory, web)
- <https://github.com/nats-io/nats-server/commit/f77fb7c4535e6727cc1a2899cd8e6bbdd8ba2017> (fix, patch, web)
- <https://github.com/nats-io/nats-server/releases/tag/v2.11.12> (article, product, release-notes, web)
- <https://github.com/nats-io/nats-server/releases/tag/v2.12.3> (article, product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27571> (advisory, web)
- <https://github.com/nats-io/nats-server> (package)
- <https://pkg.go.dev/vuln/GO-2026-4533> (web)

## Sources

- CVE List: [CVE-2026-27571](https://www.cve.org/CVERecord?id=CVE-2026-27571), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-qrvq-68c2-7grw](https://github.com/advisories/GHSA-qrvq-68c2-7grw), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-4533](https://pkg.go.dev/vuln/GO-2026-4533), CC-BY-4.0, modified 2026-03-02
- NVD: [CVE-2026-27571](https://nvd.nist.gov/vuln/detail/CVE-2026-27571), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-NATS-2026-27571](https://osv.dev/vulnerability/BIT-NATS-2026-27571), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-27571 · Whole record: https://cve.day/CVE-2026-27571.json · Rebuilt by cve.day 2026-11-25T22:59:14.769Z
