CVE-2026-58214
NATS Server MQTT subscribe permission bypass exposes internal QoS 2 metadata
Also known as BIT-nats-2026-58214, GHSA-4g68-3pwx-5vfj, GO-2026-6999
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).
Who should check
- Projects that depend on Go package github.com/nats-io/nats-server/v2 (< 2.12.12)
Vulnerability facts
- Affected
- github.com/nats-io/nats-server/v2 < 2.12.12
- Fixed in
- 2.12.12, 2.14.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 4.3 (v3.1, GitHub)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.35% chance of exploitation in 30 days (percentile 21, 2026-11-28)
- CWE
- CWE-863
- Modified
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 MQTT support uses internal `$MQTT.*` subjects to implement MQTT protocol features such as QoS handling. ### Problem Description An authenticated MQTT client could subscribe to an internal MQTT delivery subject that was not intended to be available to clients. This bypassed configured subscribe permissions for that internal subject family and exposed MQTT QoS2 protocol metadata for sessions in the account. Message payloads were not exposed through this path. This issue was related to an incomplete restriction on internal MQTT subjects. It affected MQTT users whose ordinary subscribe permissions would not otherwise allow access to those internal subjects. ### Affected Versions Versions v2.14.2, v2.12.7 and below are vulnerable. The issue is fixed in v2.14.3 and v2.12.8. ### Workarounds No known workaround for deployments that require MQTT. Upgrade to a fixed release. Deployments not using MQTT are not affected. ### References * GHSA advisory: <https://github.com/nats-io/nats-server/security/advisories/GHSA-4g68-3pwx-5vfj> * Credit: Koda Reef
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/nats-io/nats-server/v2 | < 2.12.12 | 2.12.12, 2.14.3 | ghsa |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-58214. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-58214.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.
Technologies
References
Vendor advisories
Patches
FAQ
Is CVE-2026-58214 being exploited?
There is no confirmed exploitation: CVE-2026-58214 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-28).
How serious is CVE-2026-58214?
Medium: CVSS 4.3 (v3.1, scored by GitHub). Remote, login needed.
Which versions are affected by CVE-2026-58214?
github.com/nats-io/nats-server/v2 < 2.12.12.
Is there a fix for CVE-2026-58214?
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-58214?
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.
More github.com/nats-io/nats-server/v2 vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 5.3 | CVE-2026-58254 nats-server Leaf node connections bypass Nats-Trace-Dest permission check | Go modules | EPSS 16% | |
| MEDIUM 6.8 | CVE-2026-58208 NATS Server: MQTT-over-WebSocket Path Can Crash WebSocket-Only JetStream Servers Before MQTT Is Enabled | Go modules | EPSS 43% | |
| HIGH 7.5 | CVE-2026-58210 NATS Server allows unauthenticated memory exhaustion through incomplete MQTT CONNECT packets | Go modules | EPSS 51% | |
| MEDIUM 4.3 | CVE-2026-58209 NATS Server MQTT retained messages and QoS replay bypass subscription deny rules | Go modules | EPSS 20% | |
| HIGH 7.1 | CVE-2026-58213 NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection | Go modules | EPSS 30% |