CVE-2026-58208
JSON

6.8medium

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

Severity
6.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.41% (higher than 37% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-p957-7v2w-g93gGO-2026-7013

Description

NATS Server is a high-performance server for NATS.io, the cloud and edge native messaging system. Prior to 2.14.3 and 2.12.12, a WebSocket listener could route requests for the MQTT-over-WebSocket path into MQTT handling even when MQTT was not configured, allowing an unauthenticated client with access to the WebSocket listener to reach uninitialized MQTT state and crash the server process. This issue is fixed in versions 2.14.3 and 2.12.12.

Affected

Product or packageVersionsReported by
nats-io nats-server>= 2.14.0-RC.1, < 2.14.3, < 2.12.12CVE List
github.com/nats-io/nats-server/v2 (Go)before 2.12.12, from 2.14.0-RC.1 before 2.14.3GitHub Advisory Database, Go Vulnerability Database
linuxfoundation nats-serverfrom 2.12.0 before 2.12.12, from 2.14.0 before 2.14.3NVD

All scores

GitHub_M6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:H
GitHub6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-248

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

NATS Server is a high-performance server for NATS.io, the cloud and edge native messaging system. Prior to 2.14.3 and 2.12.12, a WebSocket listener could route requests for the MQTT-over-WebSocket path into MQTT handling even when MQTT was not configured, allowing an unauthenticated client with access to the WebSocket listener to reach uninitialized MQTT state and crash the server process. This issue is fixed in versions 2.14.3 and 2.12.12.

GitHub Advisory Database
Background

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.

Problem Description

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.

Affected Versions

Versions v2.14.2, v2.12.11 and below are vulnerable. The issue is fixed in v2.14.3 and v2.12.12.

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.

References
Go Vulnerability Database

NATS Server: MQTT-over-WebSocket Path Can Crash WebSocket-Only JetStream Servers Before MQTT Is Enabled in github.com/nats-io/nats-server/v2

NVD (es)

NATS Server es un servidor de alto rendimiento para NATS.io, el sistema de mensajería nativo de la nube y del borde. Antes de las versiones 2.14.3 y 2.12.12, un oyente de WebSocket podía enrutar solicitudes para la ruta MQTT-over-WebSocket hacia el manejo de MQTT incluso cuando MQTT no estaba configurado, permitiendo a un cliente no autenticado con acceso al oyente de WebSocket alcanzar un estado MQTT no inicializado y colapsar el proceso del servidor. Este problema está solucionado en las versiones 2.14.3 y 2.12.12.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-58208 changed 2026-07-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-p957-7v2w-g93g changed 2026-11-23CC-BY-4.0
Go Vulnerability DatabaseGO-2026-7013 changed 2026-11-23CC-BY-4.0
NVDCVE-2026-58208 changed 2026-10-25Public domain