Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/nats-io/nats-server
  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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions

Solution

Unfortunately, there is no solution available yet.

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/CVE-2026-27889.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:24 +0000.