NATS Server MQTT protocol injection (CVE-2026-58213)
NATS Server is vulnerable to MQTT protocol injection via crafted subscription filters that allow attackers to inject arbitrary NATS commands into routed or leafnode connections.
CVE search metadata
CVE search record: CVE-2026-58213. Severity: high. CVSS: 7.1. EPSS: 0.44%. KEV: no. Product: NATS Server. Brief: NATS Server MQTT protocol injection (CVE-2026-58213). Brief link: https://feed.craftedsignal.io/briefs/2026-11-nats-mqtt-injection-ghsa-qrcv-3558-gj4f/
Triage facts
Revision 1- Applicability
- NATS Server
- Evidence
- Unknown
- Severity
- Medium
- Action
- Immediate escalation
- Sources
- 2 public sources
- Freshness
- Revision 1Nov 19, 16:40 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Very likely
Overview
NATS Server is susceptible to a protocol injection vulnerability (CVE-2026-58213) in its MQTT support. An MQTT client can include control characters in a subscription filter which are subsequently forwarded as NATS protocol commands when using route or leafnode connections. This allows for the injection of unauthorized NATS operations across cluster nodes or account boundaries. Deployments using anonymous MQTT access are at the highest risk, as no authentication is required to interact with the vulnerable parser.
Impact
Successful exploitation can result in the injection of unintended NATS commands across cluster nodes, potentially leading to unauthorized operations within the messaging architecture. Confidentiality is identified as a primary impact area due to the ability to manipulate cross-account or cross-node traffic flows.
Recommendation
- Immediate Upgrade: Update NATS Server to version 2.12.9 or 2.14.1 to remediate this vulnerability.
- Configuration Change: Disable anonymous MQTT access in NATS Server configurations where it is not required for production services.
- Inventory: Audit current NATS deployments to identify instances using MQTT subscriptions, specifically those that facilitate cross-cluster or cross-account communication via leafnode or route forwarding.
Immediate actions
Upgrade NATS Server to 2.12.9 or 2.14.1
Disable anonymous MQTT access in NATS Server
Threat Hunt
Monitor NATS server logs for MQTT subscription patterns containing unusual control characters or characters typically outside expected subscription filter syntax.
Data: NATS server logs, MQTT protocol metadata