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
- Upgrade Go package github.com/nats-io/nats-server/v2 to version 2.12.12 or 2.14.3.
How to check your project
- Check the go.mod file or dependency manifest to determine if github.com/nats-io/nats-server/v2 is used at version v2.14.2, v2.12.11, or any prior vulnerable version.
- Inspect NATS Server configurations to identify deployments that have WebSocket enabled while MQTT is disabled.
Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| 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 vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | None |
| Scope | Changed |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
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
References
- WEB https://github.com/nats-io/nats-server/security/advisories/GHSA-p957-7v2w-g93g
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-58208
- WEB https://github.com/nats-io/nats-server/commit/73b3dd9a5ea0fa7bf08b702338676355b29b5fb4
- WEB https://github.com/nats-io/nats-server/commit/837536b98b3a9280b993282155ff2bdd3ca38c30
- PACKAGE https://github.com/nats-io/nats-server
- WEB https://github.com/nats-io/nats-server/releases/tag/v2.12.12
- WEB https://github.com/nats-io/nats-server/releases/tag/v2.14.3
Source records: GHSA-p957-7v2w-g93g, GO-2026-7013 (OSV.dev) · EPSS by FIRST, 2026-11-26.