Vulnerability · Published Jul 8, 2026 · Assigned by GitHub_M

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

High 7.1

In plain English

A high-severity injection in nats-server from nats-io. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.1High
Exploit odds (30 days)0.4%top 61.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12nats-serverno fix listedDEBIAN-CVE-2026-58213
Debian:13nats-serverno fix listedDEBIAN-CVE-2026-58213
Debian:14nats-server2.14.1-1DEBIAN-CVE-2026-58213
Ubuntu:24.04:LTSnats-serverno fix listedUBUNTU-CVE-2026-58213
Ubuntu:25.10nats-serverno fix listedUBUNTU-CVE-2026-58213

Affected products (as reported)

VendorProductVersions
nats-io nats-server < 2.12.9>= 2.14.0-RC.1, < 2.14.1

Weakness: CWE-74 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

References