NATS: Pre-auth remote server crash via WebSocket frame length overflow in wsRead
Description
NATS-Server is a High-Performance server for NATS.io, a cloud and edge native messaging system. Starting in version 2.2.0 and prior to versions 2.11.14 and 2.12.5, a missing sanity check on a WebSockets frame could trigger a server panic in the nats-server. This happens before authentication, and so is exposed to anyone who can connect to the websockets port. Versions 2.11.14 and 2.12.5 contains a fix. A workaround is available. The vulnerability only affects deployments which use WebSockets and which expose the network port to untrusted end-points. If one is able to do so, a defense in depth of restricting either of these will mitigate the attack.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/nats-io/nats-server/v2Go | >= 2.2.0, < 2.11.14 | 2.11.14 |
github.com/nats-io/nats-server/v2Go | >= 2.12.0, < 2.12.5 | 2.12.5 |
github.com/nats-io/nats-serverGo | >= 0 | — |
Affected products
11- osv-coords10 versionspkg:apk/chainguard/k3s-1.32pkg:apk/chainguard/k3s-static-1.32pkg:apk/chainguard/milvus-2.5pkg:apk/chainguard/rke2-runtime-fips-1.34pkg:apk/wolfi/k3s-1.32pkg:apk/wolfi/k3s-static-1.32pkg:bitnami/natspkg:golang/github.com/nats-io/nats-serverpkg:golang/github.com/nats-io/nats-server/v2pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Leap%2015.6
< 1.32.13.1-r5+ 9 more
- (no CPE)range: < 1.32.13.1-r5
- (no CPE)range: < 1.32.13.1-r5
- (no CPE)range: < 2.5.27-r4
- (no CPE)range: < 1.34.6.2.1-r1
- (no CPE)range: < 1.32.13.1-r5
- (no CPE)range: < 1.32.13.1-r5
- (no CPE)range: >= 2.2.0, < 2.11.14
- (no CPE)range: >= 0
- (no CPE)range: >= 2.2.0, < 2.11.14
- (no CPE)range: < 0.0.20260326T203309-150000.1.155.2
- Range: >= 2.2.0, < 2.11.14
Patches
Vulnerability mechanics
References
4- github.com/advisories/GHSA-pq2q-rcw4-3hr6ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-27889ghsaADVISORY
- advisories.nats.io/CVE/secnote-2026-03.txtghsax_refsource_MISCWEB
- github.com/nats-io/nats-server/security/advisories/GHSA-pq2q-rcw4-3hr6ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.