Go
CVE-2026-58213
NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection
- Severity
- High 7.1
- Published
- 19 Nov 2026
- Last changed
- 19 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 2.12.9, 2.14.1
- Exploit chance
- 0.4% in the next 30 daysHigher than 38% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Injection (CWE-74)
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Read data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N- Also known as
- BIT-nats-2026-58213, GHSA-qrcv-3558-gj4f
- Sources
- OSV.dev and GitHub
Description
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 supports MQTT clients and can bridge MQTT activity into NATS subjects across routes and leafnode connections.
An MQTT client could include protocol control characters in subscription filters that were later forwarded as NATS protocol data to route or leafnode connections.
This could corrupt the forwarded protocol stream and allow injection of unintended NATS protocol operations, potentially across cluster nodes or accounts where route or gateway connections are present.
Anonymous MQTT deployments are higher risk because no credentials are required to reach the affected parser. Authenticated deployments are still affected for clients allowed to create MQTT subscriptions.
Workarounds
Disable anonymous MQTT access where it is not required. Deployments that need MQTT have no known complete workaround other than upgrading.
Affected software
| Software | Affected versions |
|---|---|
github.com/nats-io/nats-server/v2Go · osv:Go:github.com/nats-io/nats-server/v2 |
|
About github.com/nats-io/nats-server/v2
Vulnerabilities in github.com/nats-io/nats-server/v2
- In our list
- 6
- Published in the last 12 months
- 6
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-58254nats-server Leaf node connections bypass Nats-Trace-Dest permission checkMedium 6.5 20 Nov 2026
- CVE-2026-58208NATS Server: MQTT-over-WebSocket Path Can Crash WebSocket-Only JetStream Servers Before MQTT Is EnabledMedium 6.8 20 Nov 2026
- CVE-2026-58210NATS Server allows unauthenticated memory exhaustion through incomplete MQTT CONNECT packetsHigh 7.5 20 Nov 2026
- CVE-2026-58209NATS Server MQTT retained messages and QoS replay bypass subscription deny rulesMedium 4.3 20 Nov 2026
- CVE-2026-58214NATS Server MQTT subscribe permission bypass exposes internal QoS 2 metadataMedium 4.3 19 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-58213
- GitHub Advisory Database https://github.com/advisories/GHSA-qrcv-3558-gj4f