CVE-2026-58209: NATS Server MQTT retained messages and QoS replay bypass subscription deny rules
Published 2026-11-20 · Updated 2026-11-23 · Also known as BIT-nats-2026-58209, GHSA-7qmq-8cc4-hxwg, GO-2026-7010
Summary
NATS Server MQTT retained message delivery and QoS1+ durable replay fail to consistently recheck concrete original topics against subscriber subscription deny rules. Engineering and security teams using NATS Server MQTT support should update to patched versions.
Who is affected
Deployments using NATS Server MQTT with broad wildcard subscriptions and specific configured subscription deny rules are affected. Under these conditions, MQTT retained messages and replayed QoS1+ deliveries can bypass the deny rules and send unauthorized messages to subscribers.
Exploitability
The vulnerability has a CVSS 3.1 base score of 4.3 (Medium) with a vector of AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N, indicating network accessibility with low privileges required and no user interaction. The EPSS score is 0.003 and CISA KEV active exploitation is marked as no.
Remediation
- Upgrade Go package github.com/nats-io/nats-server/v2 to version 2.12.12 or 2.14.3.
- Disable MQTT if it is not required by the deployment.
How to check your project
- Check go.mod and go.sum files for github.com/nats-io/nats-server/v2 to determine if an affected version is used.
- Verify whether the deployment actively utilizes NATS Server MQTT features.
Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/nats-io/nats-server/v2 |
>= 0, < 2.12.12 | 2.12.12 | go get github.com/nats-io/nats-server/[email protected] |
| Go | github.com/nats-io/nats-server/v2 |
>= 2.14.0-RC.1, < 2.14.3 | 2.14.3 | go get github.com/nats-io/nats-server/[email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | Low |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | Low |
| Integrity | None |
| Availability | None |
FAQ
What components of NATS Server are affected?
The vulnerability affects the MQTT support implementation in NATS Server regarding retained messages and QoS1+ durable delivery.
Are deployments not using MQTT affected?
No, deployments that do not use MQTT are not affected by this vulnerability.
What are the fixed versions for NATS Server?
The issue is fixed in versions 2.12.12 and 2.14.3.
Original advisory description
References
- WEB https://github.com/nats-io/nats-server/security/advisories/GHSA-7qmq-8cc4-hxwg
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-58209
- WEB https://github.com/nats-io/nats-server/commit/181b1f51f40b9954c57e9d478e051fb257679356
- WEB https://github.com/nats-io/nats-server/commit/1c429b6fdc5afd4188cc5faf1127f6334896cd87
- PACKAGE https://github.com/nats-io/nats-server
- WEB https://github.com/nats-io/nats-server/releases/tag/v2.12.12
- WEB https://github.com/nats-io/nats-server/releases/tag/v2.14.3
Source records: GHSA-7qmq-8cc4-hxwg, GO-2026-7010 (OSV.dev) · EPSS by FIRST, 2026-11-24.