What’s Vulnerable › Vulnerabilities

CVE-2026-58213: NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection

Description

NATS Server is a high-performance server for NATS.io, the cloud and edge native messaging system. Prior to 2.14.1 and 2.12.9, an MQTT client could include protocol control characters in subscription filters that were later forwarded as NATS protocol data to route or leafnode connections, corrupting the forwarded protocol stream and allowing injection of unintended NATS protocol operations. This issue is fixed in versions 2.14.1 and 2.12.9.

Affected products

How to fix

Upgrade to a fixed version: nats-io nats-server 2.12.9, 2.14.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-58213 or the next vulnerability affects your stack