{"id":"CVE-2026-27571","published":"2026-02-24T15:59:17Z","modified":"2026-02-26T21:33:40Z","title":"nats-server websockets are vulnerable to pre-auth memory DoS","vendor":"nats-io","product":"nats-server","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00845,"percentile":0.55395,"provenance":"source"},"cwes":[{"id":"CWE-409","name":"Improper Handling of Highly Compressed Data (Data Amplification)"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/nats-io/nats-server/security/advisories/GHSA-qrvq-68c2-7grw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nats-io/nats-server/commit/f77fb7c4535e6727cc1a2899cd8e6bbdd8ba2017","tags":["x_refsource_MISC"]},{"url":"https://github.com/nats-io/nats-server/releases/tag/v2.11.12","tags":["x_refsource_MISC"]},{"url":"https://github.com/nats-io/nats-server/releases/tag/v2.12.3","tags":["x_refsource_MISC"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":11.08},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"nats-io","affectedVersions":[{"vendor":"nats-io","product":"nats-server","versions":["< 2.11.12",">= 2.12.0-RC.1, < 2.12.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-26T21:06:37.631926Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/nats-io/nats-server/v2","vulnerableRanges":["<2.11.12",">=2.12.0-RC.1, <2.12.3"],"patched":["2.11.12","2.12.3"],"from":["GHSA-qrvq-68c2-7grw","GO-2026-4533"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/nats-io/nats-server","vulnerableRanges":["<=1.4.1","all versions"],"patched":[],"from":["GHSA-qrvq-68c2-7grw","GO-2026-4533"],"provenance":"source"}],"summary":{"text":"A flaw in the WebSockets handling of compressed NATS messages in nats-server (from nats-io) fails to independently bound memory consumption while decompressing messages, before the size check fails. An unauthenticated remote attacker who can reach a WebSocket-enabled port exposed to untrusted endpoints can send a compression bomb, which the server negotiates before authentication, to exhaust memory and typically crash the server process; the vulnerability does not affect deployments without WebSockets or without exposure to untrusted endpoints.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:25Z"},"euvd":{"id":"EUVD-2026-8538","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nats-io-nats-server-cve-2026-27571","children":[{"from":"CVE-2026-27571","to":"CVE-2026-33219","relation":"variant","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"variant","quote":"This is a milder variant of CVE-2026-27571.","from":"CVE.org","in":"CVE-2026-33219"},{"kind":"osv-related","provenance":"source","id":"GHSA-qrvq-68c2-7grw","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-8r68-gvr4-jh7j","via":"reference","url":"https://github.com/advisories/GHSA-qrvq-68c2-7grw"},{"kind":"osv-related","provenance":"source","id":"GO-2026-4831","via":"reference","url":"https://github.com/advisories/GHSA-qrvq-68c2-7grw"}]}],"packageHistory":[{"cve":"CVE-2023-47090","published":"2023-10-30","fixed":"2.10.2","kev":false},{"cve":"CVE-2023-46129","published":"2023-10-30","fixed":"2.10.4","kev":false},{"cve":"CVE-2025-30215","published":"2025-04-15","fixed":"2.11.1","kev":false,"link":{"from":"CVE-2025-30215","to":"CVE-2026-27571","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/nats-io/nats-server/v2","fromFixed":"2.11.1","toFixed":"2.11.12","daysApart":315}]}},{"cve":"CVE-2026-27571","published":"2026-02-24","fixed":"2.12.3","kev":false},{"cve":"CVE-2026-27889","published":"2026-03-25","fixed":"2.12.5","kev":false,"link":{"from":"CVE-2026-27571","to":"CVE-2026-27889","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/nats-io/nats-server/v2","fromFixed":"2.11.12","toFixed":"2.11.14","daysApart":29}]}},{"cve":"CVE-2026-29785","published":"2026-03-25","fixed":"2.12.5","kev":false,"link":{"from":"CVE-2026-27571","to":"CVE-2026-29785","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/nats-io/nats-server/v2","fromFixed":"2.11.12","toFixed":"2.11.14","daysApart":29}]}},{"cve":"CVE-2026-33215","published":"2026-03-24","fixed":"2.12.6","kev":false}],"package":"Go:github.com/nats-io/nats-server/v2"}}