CVE-2026-58213

GHSA-qrcv-3558-gj4f · published 8 Jul 2026 · updated 19 Nov 2026

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

7.1HighCVSS 7.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in github.com/nats-io/nats-server/v2 2.12.9 and github.com/nats-io/nats-server/v2 2.14.1.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
nats-io<2.12.9, >=2.14.0-RC.1 <2.14.1
go: github.com/nats-io/nats-server/v2<2.12.9, >=2.14.0-RC.1 <2.14.12.12.9, 2.14.1

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in github.com/nats-io/nats-server/v2 (Go), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-58213 severity on Zeptric[![CVE-2026-58213](https://zeptric.io/badge/cve/CVE-2026-58213.svg)](https://zeptric.io/cve/CVE-2026-58213)