7.1high
NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection
- Severity
- 7.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.32% (higher than 27% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-qrcv-3558-gj4fBIT-NATS-2026-58213GO-2026-7000
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
| Product or package | Versions | Reported by |
|---|---|---|
| nats-io nats-server | < 2.12.9, >= 2.14.0-RC.1, < 2.14.1 | CVE List |
| github.com/nats-io/nats-server/v2 (Go) | before 2.12.9, from 2.14.0-RC.1 before 2.14.1 | GitHub Advisory Database, Go Vulnerability Database |
| linuxfoundation nats-server | before 2.12.9, from 2.14.0 before 2.14.1 | NVD |
| nats (Bitnami) | before 2.12.9, from 2.14.0 before 2.14.1 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N |
| GitHub | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Background
NATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT and edge computing.
The NATS Server supports MQTT clients and can bridge MQTT activity into NATS subjects across routes and leafnode connections.
Problem Description
An MQTT client could include protocol control characters in subscription filters that were later forwarded as NATS protocol data to route or leafnode connections.
This could corrupt the forwarded protocol stream and allow injection of unintended NATS protocol operations, potentially across cluster nodes or accounts where route or gateway connections are present.
Anonymous MQTT deployments are higher risk because no credentials are required to reach the affected parser. Authenticated deployments are still affected for clients allowed to create MQTT subscriptions.
Affected Versions
Versions v2.14.0, v2.12.8 and below are vulnerable. The issue is fixed in v2.14.1 and v2.12.9.
Workarounds
Disable anonymous MQTT access where it is not required. Deployments that need MQTT have no known complete workaround other than upgrading.
References
- GHSA advisory: https://github.com/nats-io/nats-server/security/advisories/GHSA-qrcv-3558-gj4f
- Credit: @thesecguy45
Go Vulnerability Database
NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection in github.com/nats-io/nats-server/v2
NVD (es)
NATS Server es un servidor de alto rendimiento para NATS.io, el sistema de mensajería nativo de la nube y del borde. Antes de 2.14.1 y 2.12.9, un cliente MQTT podía incluir caracteres de control de protocolo en filtros de suscripción que luego eran reenviados como datos del protocolo NATS a conexiones de ruta o de nodo hoja, corrompiendo el flujo del protocolo reenviado y permitiendo la inyección de operaciones de protocolo NATS no intencionadas. Este problema está solucionado en las versiones 2.14.1 y 2.12.9.
References
| https://github.com/nats-io/nats-server/security/advisories/GHSA-qrcv-3558-gj4f | advisory, vendor-advisory, web | |
| https://github.com/nats-io/nats-server/pull/8163 | fix, issue-tracking, patch, web | |
| https://github.com/nats-io/nats-server/pull/8164 | fix, issue-tracking, patch, web | |
| https://github.com/nats-io/nats-server/commit/366837cfc65ab9ccb4f98193c65e8daf238582d8 | fix, patch, web | |
| https://github.com/nats-io/nats-server/commit/64ebae40051ee497c481e10f316238faf0de1736 | fix, patch, web | |
| https://github.com/nats-io/nats-server/commit/f14856b9e57a36818f43851cb69b6e33670885c9 | fix, patch, web | |
| https://github.com/nats-io/nats-server/releases/tag/v2.12.9 | article, release-notes, web | |
| https://github.com/nats-io/nats-server/releases/tag/v2.14.1 | article, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-58213 | advisory, web | |
| https://github.com/nats-io/nats-server | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-58213 changed 2026-07-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qrcv-3558-gj4f changed 2026-11-23 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-7000 changed 2026-11-23 | CC-BY-4.0 |
| NVD | CVE-2026-58213 changed 2026-10-25 | Public domain |
| Bitnami Vulnerability Database | BIT-NATS-2026-58213 changed 2026-11-23 | Apache-2.0 |