All vulnerabilities

Go

CVE-2026-58208

NATS Server: MQTT-over-WebSocket Path Can Crash WebSocket-Only JetStream Servers Before MQTT Is Enabled

Severity
Medium 6.8
Published
20 Nov 2026
Last changed
20 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
2.12.12, 2.14.3
Exploit chance
0.4% in the next 30 daysHigher than 36% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Uncaught exception (CWE-248)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:H
Also known as
GHSA-p957-7v2w-g93g
Sources
OSV.dev and GitHub

Description

NATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT and edge computing.

The NATS Server can accept client connections over WebSocket and can also support MQTT over WebSocket when MQTT is configured.

A WebSocket listener could route requests for the MQTT-over-WebSocket path into MQTT handling even when MQTT was not configured.

On affected deployments, an unauthenticated client with access to the WebSocket listener could reach uninitialized MQTT state and crash the server process.

This affects deployments that enable WebSocket while leaving MQTT disabled. Deployments where MQTT is intentionally configured initialize the MQTT state and are not affected in the same way.

From the GitHub Advisory Database, CC BY 4.0.

Workarounds

Deployments not using WebSocket are not affected. Deployments using both WebSockets and MQTT are not affected. No known workaround for deployments that need WebSocket without MQTT-over-WebSocket. Upgrade to a fixed release.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
github.com/nats-io/nats-server/v2Go · osv:Go:github.com/nats-io/nats-server/v2
  • Every version before 2.12.12
  • From 2.14.0-RC.1 before 2.14.3

About github.com/nats-io/nats-server/v2

References