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

- **Severity:** MEDIUM 6.8
- **CVSS:** 6.8 (v3.1, GitHub) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.60% (percentile 43, 2026-11-28)
- **CWE:** CWE-248
- **Aliases:** GHSA-p957-7v2w-g93g, GO-2026-7013
- **Published:** 2026-11-20T00:05:17.000Z
- **Modified:** 2026-11-23T20:30:15.803Z

## Who should check

- Projects that depend on Go package github.com/nats-io/nats-server/v2 (\< 2.12.12)

## 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

## Affected and fixed versions

- Go `github.com/nats-io/nats-server/v2`: affected \< 2.12.12; fixed 2.12.12, 2.14.3 (ghsa)

## Technologies

Go modules

## Mitigation

- Upgrade github.com/nats-io/nats-server/v2 to one of 2.12.12, 2.14.3 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-58208. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-58208.md
Affected: github.com/nats-io/nats-server/v2 < 2.12.12
Fixed in: 2.12.12, 2.14.3

Steps:
1. Search this machine and project for github.com/nats-io/nats-server/v2 (Go): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-58208 being exploited?

There is no confirmed exploitation: CVE-2026-58208 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.60% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-58208?

Medium: CVSS 6.8 (v3.1, scored by GitHub). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-58208?

github.com/nats-io/nats-server/v2 \< 2.12.12.

### Is there a fix for CVE-2026-58208?

Yes. Fixed in 2.12.12, 2.14.3. Upgrade github.com/nats-io/nats-server/v2 to one of 2.12.12, 2.14.3 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-58208?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/nats-io/nats-server/security/advisories/GHSA-p957-7v2w-g93g>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-58208>
- patch: <https://github.com/nats-io/nats-server/commit/73b3dd9a5ea0fa7bf08b702338676355b29b5fb4>
- patch: <https://github.com/nats-io/nats-server/commit/837536b98b3a9280b993282155ff2bdd3ca38c30>
- other: <https://github.com/nats-io/nats-server/releases/tag/v2.12.12>
- other: <https://github.com/nats-io/nats-server/releases/tag/v2.14.3>
- other: <https://github.com/advisories/GHSA-p957-7v2w-g93g>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-p957-7v2w-g93g> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-7013> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-58208> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-58208>
