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
Not known to be exploited · CVSS 7.1 High : upgrade to 2.12.9 soon.
Data as of 19 Nov 2026, 17:20 UTC
- 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:NExploitation evidence
Disclosed: evidence found.
CVE published 8 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/nats-io/nats-server/v2 | Affected
| Fixed in
|
| Gogithub.com/nats-io/nats-server/v2 | Affected
| Fixed in
|
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
- github.com/nats-io/nats-server/security/advisories/GHSA-qrcv-3558-gj4f (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-58213 (opens in a new tab)
- github.com/nats-io/nats-server/pull/8163 (opens in a new tab)
- github.com/nats-io/nats-server/pull/8164 (opens in a new tab)
- github.com/nats-io/nats-server/commit/366837cfc65ab9ccb4f98193c65e8daf238582d8 (opens in a new tab)
- github.com/nats-io/nats-server/commit/64ebae40051ee497c481e10f316238faf0de1736 (opens in a new tab)
- github.com/nats-io/nats-server/commit/f14856b9e57a36818f43851cb69b6e33670885c9 (opens in a new tab)
- github.com/nats-io/nats-server (opens in a new tab)
- github.com/nats-io/nats-server/releases/tag/v2.12.9 (opens in a new tab)
- github.com/nats-io/nats-server/releases/tag/v2.14.1 (opens in a new tab)