Live threats

All CVEs / Linuxfoundation

CVE-2026-27571Linuxfoundation Nats-server

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Feb 24, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-409, CWE-770
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Nats-server.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/nats-io/nats-server ≤ 1.4.1 no fixed version —
Go github.com/nats-io/nats-server all no fixed version —
Go github.com/nats-io/nats-server/v2 < 2.11.12 2.11.12 go get github.com/nats-io/nats-server/v2@v2.11.12
Go github.com/nats-io/nats-server/v2 ≥ 2.12.0-RC.1 < 2.12.3 2.12.3 go get github.com/nats-io/nats-server/v2@v2.12.3
Go github.com/nats-io/nats-server/v2 < 2.11.12 2.11.12 go get github.com/nats-io/nats-server/v2@v2.11.12
Go github.com/nats-io/nats-server/v2 ≥ 2.12.0-RC.1 < 2.12.3 2.12.3 go get github.com/nats-io/nats-server/v2@v2.12.3

Per OSV / GitHub Advisories (GHSA-qrvq-68c2-7grw, GO-2026-4533). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
linuxfoundationnats-server< 2.11.12
linuxfoundationnats-server≥ 2.12.0 < 2.12.3

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.