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

Published Jul 8, 2026
·
Updated

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 Software

3 affected components
NATS NATS Server<2.14.1, <2.12.9
linuxfoundation Nats-server<2.12.9
linuxfoundation Nats-server>=2.14.0<2.14.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade nats-server to a version that resolves this vulnerability.

    Fixed in 2.14.1
  2. Upgrade

    Upgrade nats-server to a version that resolves this vulnerability.

    Fixed in 2.12.9

Event History

Jul 8, 2026
CVE Published
via MITRE·07:52 PM
Data Sourced
via MITRE·07:52 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-58213?

CVE-2026-58213 has a high severity rating of 7.1.

2

How do I fix CVE-2026-58213?

To mitigate CVE-2026-58213, upgrade to NATS Server versions 2.14.1 or 2.12.9 and later.

3

What vulnerability does CVE-2026-58213 address?

CVE-2026-58213 addresses a protocol injection issue in the MQTT SUBSCRIBE mechanism of NATS Server.

4

What are the potential impacts of CVE-2026-58213?

CVE-2026-58213 can allow arbitrary NATS command injection via corrupted subscription filters.

5

In which versions is CVE-2026-58213 present?

CVE-2026-58213 affects NATS Server versions prior to 2.14.1 and 2.12.9.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203