MEDIUM · CVSS 3.1 6.8 EPSS 0.6% · 43th percentile CWE-248

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

Published 2026-11-20 · Updated 2026-11-23 · Also known as GHSA-p957-7v2w-g93g, GO-2026-7013

Summary

A flaw in NATS Server allows unauthenticated clients to reach uninitialized MQTT state via WebSocket paths and crash the server. Engineering and security teams running WebSocket-enabled NATS deployments without MQTT should act by upgrading.

Who is affected

This vulnerability affects deployments that enable WebSocket while leaving MQTT disabled. On these deployments, an unauthenticated client with access to the WebSocket listener can route requests into MQTT handling and cause a denial of service by crashing the server process. Deployments where MQTT is configured or WebSockets are not used are not affected.

Exploitability

The vulnerability has a CVSS base score of 6.8 with an AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:H vector, indicating that network exploitation requires high attack complexity without privileges or user interaction, resulting in high availability impact. It currently has an EPSS score of 0.004 (percentile 0.365) and is not listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Go github.com/nats-io/nats-server/v2 >= 0, < 2.12.12 2.12.12 go get github.com/nats-io/nats-server/[email protected]
Go github.com/nats-io/nats-server/v2 >= 2.14.0-RC.1, < 2.14.3 2.14.3 go get github.com/nats-io/nats-server/[email protected]

CVSS 3.1 vector

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

Attack vectorNetwork
Attack complexityHigh
Privileges requiredNone
User interactionNone
ScopeChanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

FAQ

Are deployments with MQTT configured affected by this issue?

No. Deployments where MQTT is intentionally configured properly initialize the MQTT state and are not affected in the same way.

Is there any workaround available for deployments that need WebSocket without MQTT?

There is no known workaround for deployments that need WebSocket without MQTT-over-WebSocket, other than upgrading to a fixed release.

What versions fix this vulnerability?

The issue is fixed in versions 2.12.12 and 2.14.3 of github.com/nats-io/nats-server/v2.

Original advisory description
### 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

References

Source records: GHSA-p957-7v2w-g93g, GO-2026-7013 (OSV.dev) · EPSS by FIRST, 2026-11-26.