4.3medium
NATS Server: MQTT retained and QoS replay bypass subscribe deny filters
- Severity
- 4.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.32% (higher than 26% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-7qmq-8cc4-hxwgBIT-NATS-2026-58209GO-2026-7010
Description
NATS Server is a high-performance server for NATS.io, the cloud and edge native messaging system. Prior to 2.14.3 and 2.12.12, MQTT retained message delivery and QoS1+ durable replay could deliver messages whose original topics matched a subscriber configured subscribe deny rule because these delivery paths did not consistently recheck the concrete original topic before sending the MQTT PUBLISH to the subscriber. This issue is fixed in versions 2.14.3 and 2.12.12.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nats-io nats-server | < 2.12.12, >= 2.14.0-RC.1, < 2.14.3 | CVE List |
| github.com/nats-io/nats-server/v2 (Go) | before 2.12.12, from 2.14.0-RC.1 before 2.14.3 | GitHub Advisory Database, Go Vulnerability Database |
| linuxfoundation nats-server | before 2.12.12, from 2.14.0 before 2.14.3 | NVD |
| nats (Bitnami) | before 2.12.12, from 2.14.0 before 2.14.3 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| Bitnami Vulnerability Database | medium 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.3 and 2.12.12, MQTT retained message delivery and QoS1+ durable replay could deliver messages whose original topics matched a subscriber configured subscribe deny rule because these delivery paths did not consistently recheck the concrete original topic before sending the MQTT PUBLISH to the subscriber. This issue is fixed in versions 2.14.3 and 2.12.12.
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 MQTT support includes retained messages and QoS1+ durable delivery. NATS subscription permissions can allow broad wildcard subscriptions while denying more sensitive subjects.
Problem Description
MQTT retained message delivery and QoS1+ durable replay could deliver messages whose original topics matched a subscriber's configured subscribe deny rules.
Normal live delivery applied the delivery-time deny check. These MQTT delivery paths did not consistently recheck the concrete original topic before sending the MQTT PUBLISH to the subscriber.
The issue affects MQTT subscribers with broad wildcard subscribe permissions where more specific topics are denied. Normal live delivery can be blocked while retained or replayed delivery still sends the denied topic.
Affected Versions
Versions v2.14.2, v2.12.11 and below are vulnerable. The issue is fixed in v2.14.3 and v2.12.12.
Workarounds
No known workaround for deployments that require MQTT. Upgrade to a fixed release. Deployments not using MQTT are not affected.
References
- GHSA advisory: https://github.com/nats-io/nats-server/security/advisories/GHSA-7qmq-8cc4-hxwg
- Credit: Asritha Bodepudi, Trail of Bits
Go Vulnerability Database
NATS Server MQTT retained messages and QoS replay bypass subscription deny rules 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.3 y 2.12.12, la entrega de mensajes retenidos de MQTT y la reproducción duradera QoS1+ podían entregar mensajes cuyos temas originales coincidían con una regla de denegación de suscripción configurada por el suscriptor porque estas rutas de entrega no volvían a verificar consistentemente el tema original concreto antes de enviar el MQTT PUBLISH al suscriptor. Este problema está solucionado en las versiones 2.14.3 y 2.12.12.
References
| https://github.com/nats-io/nats-server/security/advisories/GHSA-7qmq-8cc4-hxwg | advisory, vendor-advisory, web | |
| https://github.com/nats-io/nats-server/commit/181b1f51f40b9954c57e9d478e051fb257679356 | fix, patch, web | |
| https://github.com/nats-io/nats-server/commit/1c429b6fdc5afd4188cc5faf1127f6334896cd87 | fix, patch, web | |
| https://github.com/nats-io/nats-server/releases/tag/v2.12.12 | article, release-notes, web | |
| https://github.com/nats-io/nats-server/releases/tag/v2.14.3 | article, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-58209 | advisory, web | |
| https://github.com/nats-io/nats-server | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-58209 changed 2026-07-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7qmq-8cc4-hxwg changed 2026-11-23 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-7010 changed 2026-11-23 | CC-BY-4.0 |
| NVD | CVE-2026-58209 changed 2026-10-25 | Public domain |
| Bitnami Vulnerability Database | BIT-NATS-2026-58209 changed 2026-11-23 | Apache-2.0 |