CVE-2026-27571
Fixed in a distro release EPSS <1%CVSS 5.9
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.
Products: nats-io nats-server
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| Go | github.com/nats-io/nats-server | no fix |
| Go | github.com/nats-io/nats-server/v2 | 2.11.12 |
| Go | github.com/nats-io/nats-server/v2 | 2.12.3 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Chainguard | k3s-1.32 | 1.32.12.1-r2 |
| Chainguard | k3s-1.33 | 1.33.8.1-r1 |
| Chainguard | k3s-static-1.32 | 1.32.12.1-r2 |
| Chainguard | k3s-static-1.33 | 1.33.8.1-r1 |
| Chainguard | kine | 0.14.12-r1 |
| Chainguard | nats-top | 0.6.3-r14 |
| Chainguard | nats-top-fips | 0.6.3-r13 |
| Chainguard | rke2-runtime-1.31 | no fix |
| Chainguard | rke2-runtime-1.32 | 1.32.12.2.1-r3 |
| Chainguard | rke2-runtime-1.33 | 1.33.8.2.1-r3 |
| Chainguard | rke2-runtime-1.34 | 1.34.4.2.1-r3 |
| Chainguard | rke2-runtime-1.35 | 1.35.1.2.1-r3 |
| Chainguard | rke2-runtime-fips-1.31 | no fix |
| Chainguard | telegraf-1.35 | no fix |
| Chainguard | telegraf-1.36 | 1.36.4-r6 |
| Debian 12 | nats-server | no fix |
| Debian 13 | nats-server | no fix |
| Debian 14 | nats-server | 2.12.4-1 |
| Ubuntu 24.04 LTS | nats-server | no fix |
| Ubuntu 25.10 | nats-server | no fix |
| Ubuntu 26.10 | nats-server | no fix |
| Ubuntu Pro 26.04 LTS | nats-server | no fix |
| Wolfi | k3s-1.32 | 1.32.12.1-r2 |
| Wolfi | k3s-1.33 | 1.33.8.1-r1 |
| Wolfi | k3s-static-1.32 | 1.32.12.1-r2 |
| Wolfi | k3s-static-1.33 | 1.33.8.1-r1 |
| Wolfi | kine | 0.14.12-r1 |
| Wolfi | nats-top | 0.6.3-r14 |
| Wolfi | telegraf-1.36 | 1.36.4-r6 |
| openSUSE Leap 15.6 | govulncheck-vulndb | 0.0.20260226T182644-150000.1.149.1 |
| openSUSE Leap 16.0 | govulncheck-vulndb | 0.0.20260723T184607-160000.1.1 |