Security mailing lists by PureSourceCode

CVE-2026-27571

HIGH 7.5CVSS 3.1

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.

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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD linuxfoundation nats-server
cpe:2.3:a:linuxfoundation:nats-server:*:*:*:*:*:*:*:*
< 2.11.12 2.11.12
NVD linuxfoundation nats-server
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.