Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/nats-io/nats-server/v2
  4. ›
  5. CVE-2026-27889

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

March 25, 2026 (updated March 27, 2026)

An unauthenticated remote attacker can crash the entire nats-server process by sending a single malicious WebSocket frame (15 bytes after the HTTP upgrade handshake). The server fails to validate the RFC 6455 §5.2 requirement that the most significant bit of a 64-bit extended payload length must be zero. The resulting uint64 → int conversion produces a negative value, which bypasses the bounds clamp and triggers an unrecovered panic in the connection’s goroutine — killing the entire server process and disconnecting all clients. This affects all platforms (64-bit and 32-bit).

References

  • advisories.nats.io/CVE/secnote-2026-03.txt
  • github.com/advisories/GHSA-pq2q-rcw4-3hr6
  • github.com/nats-io/nats-server
  • github.com/nats-io/nats-server/security/advisories/GHSA-pq2q-rcw4-3hr6
  • nvd.nist.gov/vuln/detail/CVE-2026-27889

Code Behaviors & Features

Detect and mitigate CVE-2026-27889 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.2.0 before 2.11.14, all versions starting from 2.12.0 before 2.12.5

Fixed versions

  • 2.11.14
  • 2.12.5

Solution

Upgrade to versions 2.11.14, 2.12.5 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-190: Integer Overflow or Wraparound

Source file

go/github.com/nats-io/nats-server/v2/CVE-2026-27889.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:17:39 +0000.