Skip to main content
CVE-2026-58213VulnerabilityPublished

github.com/nats-io/nats-server/v2 · NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection

Affects github.com/nats-io/nats-server/v2Source GCVE Database

0
Compare
Authoritative record:CVE-2026-58213· High 7.1

Not known to be exploited · CVSS 7.1 High : upgrade to 2.12.9 soon.

Data as of 19 Nov 2026, 17:20 UTC

CVSS 3.1 base score
7.1High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 2.12.9, 2.14.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 18 Nov 2026.

What to do

Upgrade github.com/nats-io/nats-server/v2 to 2.12.9; github.com/nats-io/nats-server/v2 to 2.14.1.

Affected software

ProductAffectedFixed in
Gogithub.com/nats-io/nats-server/v2Affected
  • <2.12.9
Fixed in
  • 2.12.9
Gogithub.com/nats-io/nats-server/v2Affected
  • >=2.14.0-RC.1 <2.14.1
Fixed in
  • 2.14.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade NATS Server to version 2.12.9 or 2.14.1 or later to fully remediate the vulnerability. Disable anonymous MQTT access where it is not required to reduce exposure. There are no known complete workarounds other than upgrading for deployments requiring MQTT functionality.

Description

NATS Server versions prior to 2.12.9 and between 2.14.0-RC.1 and before 2.14.1 contain a vulnerability in the MQTT SUBSCRIBE protocol handling. This flaw allows an MQTT client to inject protocol control characters in subscription filters, which are forwarded as NATS protocol data to route or leafnode connections. This can corrupt the protocol stream and enable injection of unintended NATS commands across cluster nodes or accounts. The vulnerability is fixed in versions 2.12.9 and 2.14.1. Disabling anonymous MQTT access can reduce risk but upgrading is the only complete mitigation.

References

Community reviews

Loading reviews…