CVE-2026-58209 — NATS Server MQTT retained messages and QoS replay bypass subscription deny rules
One of 4 go:github.com/nats-io/nats-server/v2 vulnerabilities published together by GitHub Advisory: our article covers all of them.
GoWebCloud & containersIoTVulnerabilitiesResearch article
NATS Server MQTT Authorization Bypass Vulnerability (CVE-2026-58209)
| CVE | CVE-2026-58209 |
|---|---|
| Vendor and product | go:github.com/nats-io/nats-server/v2 |
| Published | November 21, 2026 17:20 UTC |
| Research cut-off | November 21, 2026 17:05 UTC |
| Sources reviewed | 5: NVD record (last modified 2026-10-25); CISA KEV catalog; GitHub advisory (2026-11-20); vendor advisory page (github.com); FIRST EPSS (2026-11-20) |
Executive summary
CVE-2026-58209 affects the nats-server MQTT implementation, allowing unauthorized message delivery due to incorrect authorization checks [1]. The CVSS 3.1 score is 4.3 MEDIUM, with a vector of AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N, scored by security-advisories@github.com [1]. The vulnerability impacts versions < 2.12.12 and >= 2.14.0-RC.1, < 2.14.3 [1]. The reviewed sources do not report exploitation [2]. The main action is to upgrade to a fixed version [3].
Key points
- CVE-2026-58209 affects the MQTT implementation of nats-server, allowing unauthorized message delivery [1].
- The CVSS 3.1 score is 4.3 MEDIUM, with a vector of AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N, scored by security-advisories@github.com [1].
- The vulnerability impacts versions < 2.12.12 and >= 2.14.0-RC.1, < 2.14.3 [1].
- The reviewed sources do not report exploitation [2].
- The main action is to upgrade to a fixed version [3].
Vulnerability identification
| Field | Value |
|---|---|
| CVE ID | CVE-2026-58209 [1] |
| Vendor | nats-io [1] |
| Product | nats-server [1] |
| CWE | CWE-863 (Incorrect Authorization) [1] |
| CVSS 3.1 | 4.3 MEDIUM, scored by security-advisories@github.com [1] |
| Published | 2026-07-08T20:16:53 [1] |
| Last Modified | 2026-10-25T17:10:00 [1] |
| Record Status | Analyzed [1] |
Vulnerability description
The flaw relates to how NATS Server handles MQTT retained messages and QoS1+ durable replay, where messages that should be restricted by deny rules are still transmitted to subscribers [3]. The issue arises because the MQTT delivery process fails to re-evaluate the original topic against deny rules before sending a PUBLISH message to a subscriber [3].
Attack surface and exploitation prerequisites
The CVSS vector indicates that the vulnerability requires network access (AV:N), low privilege (PR:L), and no user interaction (UI:N). It has a limited impact on confidentiality (C:L) with no effect on integrity or availability [1].
Impact analysis
The CVSS score highlights that the vulnerability primarily affects confidentiality, with no impact on system integrity or availability [1]. The advisory explains that this flaw enables messages that should be blocked to reach subscribers [3].
Affected products and versions
Exploitation and threat intelligence status
CVE-2026-58209 is not included in the CISA KEV catalog as of 2026-11-21 [2]. The EPSS score for this vulnerability is 0.0034 (0.34%), with a percentile of 0.2847 [5]. This score is a statistical estimate and does not confirm active exploitation [5].
Detection and exposure assessment
Users can assess their exposure by verifying whether their installed version of nats-server falls within the vulnerable range: < 2.12.12 or ≥ 2.14.0-RC.1, < 2.14.3 [1].
Remediation
The vulnerability is resolved in versions v2.14.3 and v2.12.12 [3]. Deployments using MQTT are not protected by any known workaround and must be upgraded to a fixed release [3].
Remediation checklist
Evidence gaps
- The sources do not describe the affected component's internals.
- The sources do not mention a workaround.
- The sources do not provide detection steps beyond version checking.
- The sources do not list any fixed version for non-MQTT deployments.
- The sources do not describe the attack lifecycle or scenarios.
References
- CVE-2026-58209 record. NIST National Vulnerability Database (NVD), 2026-10-25. https://nvd.nist.gov/vuln/detail/CVE-2026-58209. Accessed 2026-11-21.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-21. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-21.
- GHSA-7qmq-8cc4-hxwg / CVE-2026-58209 — NATS Server MQTT retained messages and QoS replay bypass subscription deny rules. GitHub Security Advisory Database, 2026-11-20. https://github.com/advisories/GHSA-7qmq-8cc4-hxwg. Accessed 2026-11-21.
- Vendor advisory page (github.com). github.com. https://github.com/nats-io/nats-server/security/advisories/GHSA-7qmq-8cc4-hxwg. Accessed 2026-11-21.
- EPSS score for CVE-2026-58209. FIRST, 2026-11-20. https://api.first.org/data/v1/epss?cve=CVE-2026-58209. Accessed 2026-11-21.
Severity breakdown
Medium · 4.3
An attacker with a normal user account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- yes, a normal user account
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- low on confidentiality, none on integrity and availability
Weakness
- CWE-863: Incorrect Authorization
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| github.com/nats-io/nats-server/v2 (Go) | < 2.12.12 | 2.12.12 |
| ≥ 2.14.0-RC.1, < 2.14.3 | 2.14.3 | |
| nats-io nats-server | < 2.12.12, >= 2.14.0-RC.1, < 2.14.3 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/nats-io/nats-server/commit/181b1f51f40b9954c57e9d478e051fb25…
- github.com/nats-io/nats-server/commit/1c429b6fdc5afd4188cc5faf1127f6334…
- github.com/nats-io/nats-server/releases/tag/v2.12.12
- github.com/nats-io/nats-server/releases/tag/v2.14.3
Other references
Details
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
Affected
- go:github.com/nats-io/nats-server/v2
Frequently asked questions
What is CVE-2026-58209?
CVE-2026-58209 affects the nats-server MQTT implementation, allowing unauthorized message delivery due to incorrect authorization checks. The CVSS 3.1 score is 4.3 MEDIUM, with a vector of AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N, scored by security-advisories@github.com. The vulnerability impacts versions < 2.12.12 and >= 2.14.0-RC.1, < 2.14.3. The reviewed sources do not report exploitation. Weakness type: Incorrect Authorization (CWE-863).
How severe is CVE-2026-58209?
CVE-2026-58209 has a CVSS 3.1 base score of 4.3 (medium), from the CNA (github.com). An attacker with a normal user account can exploit this over the network, without any user action.
Is CVE-2026-58209 being exploited?
Not as far as is known: CVE-2026-58209 is not in CISA's Known Exploited Vulnerabilities catalog as of November 28, 2026. EPSS estimates a 0.3% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-58209?
github.com/nats-io/nats-server/v2 (Go) < 2.12.12 (fixed in 2.12.12); github.com/nats-io/nats-server/v2 (Go) ≥ 2.14.0-RC.1, < 2.14.3 (fixed in 2.14.3); nats-io nats-server < 2.12.12, >= 2.14.0-RC.1, < 2.14.3.
How do I fix CVE-2026-58209?
Upgrade nats-server to version 2.12.12 or 2.14.3 to resolve the vulnerability. Check if your deployment uses MQTT and ensure it is upgraded to a fixed version. Verify that all affected systems are patched and no longer running vulnerable versions (general guidance, not from the sources).
Timeline & sources
References
Related vulnerabilities & news
- GHSA-r72h-j7qq-v6qg / CVE-2026-58210 — NATS Server allows unauthenticated memory exhaustion through incomplete MQTT CONNECT packets
- GHSA-qrcv-3558-gj4f / CVE-2026-58213 — NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection
- LLMKube Model.spec.source path traversal allows arbitrary file read (CVE-2026-68903)
- Cocos AI attested TLS: one-time attestation at handshake enables TOCTOU after connection setup (CVE-2026-119345)
- GHSA-f9h7-4mmq-vgcq / CVE-2026-58262 — Klever Go counts bitmap padding bits toward BLS quorum, allowing blocks with insufficient signatures