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 package | Versions | Reported by |
|---|---|---|
| nats-io nats-server | >= 2.14.0-RC.1, < 2.14.3, < 2.12.12 | CVE List |
| github.com/nats-io/nats-server/v2 (Go) | before 2.12.12, from 2.14.0-RC.1 before 2.14.3 | GitHub Advisory Database, Go Vulnerability Database |
| linuxfoundation nats-server | from 2.12.0 before 2.12.12, from 2.14.0 before 2.14.3 | NVD |
All scores
| GitHub_M | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:H |
| GitHub | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
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
- GHSA advisory: https://github.com/nats-io/nats-server/security/advisories/GHSA-p957-7v2w-g93g
- Credit: Vasco Franco, Trail of Bits
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
| https://github.com/nats-io/nats-server/security/advisories/GHSA-p957-7v2w-g93g | advisory, mitigation, vendor-advisory, web | |
| https://github.com/nats-io/nats-server/commit/73b3dd9a5ea0fa7bf08b702338676355b29b5fb4 | fix, patch, web | |
| https://github.com/nats-io/nats-server/commit/837536b98b3a9280b993282155ff2bdd3ca38c30 | fix, patch, web | |
| https://github.com/nats-io/nats-server/releases/tag/v2.12.12 | release-notes, web | |
| https://github.com/nats-io/nats-server/releases/tag/v2.14.3 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-58208 | advisory | |
| https://github.com/nats-io/nats-server | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-58208 changed 2026-07-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-p957-7v2w-g93g changed 2026-11-23 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-7013 changed 2026-11-23 | CC-BY-4.0 |
| NVD | CVE-2026-58208 changed 2026-10-25 | Public domain |