CVE-2026-58213
JSON

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 packageVersionsReported by
nats-io nats-server< 2.12.9, >= 2.14.0-RC.1, < 2.14.1CVE List
github.com/nats-io/nats-server/v2 (Go)before 2.12.9, from 2.14.0-RC.1 before 2.14.1GitHub Advisory Database, Go Vulnerability Database
linuxfoundation nats-serverbefore 2.12.9, from 2.14.0 before 2.14.1NVD
nats (Bitnami)before 2.12.9, from 2.14.0 before 2.14.1Bitnami Vulnerability Database

All scores

GitHub_M7.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
GitHub7.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-74

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
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-gj4fadvisory, vendor-advisory, web
https://github.com/nats-io/nats-server/pull/8163fix, issue-tracking, patch, web
https://github.com/nats-io/nats-server/pull/8164fix, issue-tracking, patch, web
https://github.com/nats-io/nats-server/commit/366837cfc65ab9ccb4f98193c65e8daf238582d8fix, patch, web
https://github.com/nats-io/nats-server/commit/64ebae40051ee497c481e10f316238faf0de1736fix, patch, web
https://github.com/nats-io/nats-server/commit/f14856b9e57a36818f43851cb69b6e33670885c9fix, patch, web
https://github.com/nats-io/nats-server/releases/tag/v2.12.9article, release-notes, web
https://github.com/nats-io/nats-server/releases/tag/v2.14.1article, release-notes, web
https://nvd.nist.gov/vuln/detail/CVE-2026-58213advisory, web
https://github.com/nats-io/nats-serverpackage

Sources

SourceRecordLicence
CVE ListCVE-2026-58213 changed 2026-07-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-qrcv-3558-gj4f changed 2026-11-23CC-BY-4.0
Go Vulnerability DatabaseGO-2026-7000 changed 2026-11-23CC-BY-4.0
NVDCVE-2026-58213 changed 2026-10-25Public domain
Bitnami Vulnerability DatabaseBIT-NATS-2026-58213 changed 2026-11-23Apache-2.0