{"id":"CVE-2026-58209","aliases":["BIT-nats-2026-58209","GHSA-7qmq-8cc4-hxwg"],"url":"https://o3.security/vulnerability/CVE-2026-58209","summary":"NATS Server: MQTT retained and QoS replay bypass subscribe deny filters","details":"### Background\n\nNATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT and edge computing.\n\nThe NATS Server MQTT support includes retained messages and QoS1+ durable delivery. NATS subscription permissions can allow broad wildcard subscriptions while denying more sensitive subjects.\n\n### Problem Description\n\nMQTT retained message delivery and QoS1+ durable replay could deliver messages whose original topics matched a subscriber's configured subscribe deny rules.\n\nNormal 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.\n\nThe 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.\n\n### Affected Versions\n\nVersions v2.14.2, v2.12.11 and below are vulnerable. The issue is fixed in v2.14.3 and v2.12.12.\n\n### Workarounds\n\nNo known workaround for deployments that require MQTT. Upgrade to a fixed release. Deployments not using MQTT are not affected.\n\n### References\n\n * GHSA advisory: <https://github.com/nats-io/nats-server/security/advisories/GHSA-7qmq-8cc4-hxwg>\n * Credit: Asritha Bodepudi, Trail of Bits","published":"2026-07-08T20:12:11.240Z","modified":"2026-10-28T02:31:14.601912092Z","cvss":{"score":4.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"},"epss":{"score":0.00342,"percentile":0.28337,"asOf":"2026-11-19"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/nats-io/nats-server/v2","fixedVersion":"2.12.12"},{"ecosystem":"Go","name":"github.com/nats-io/nats-server/v2","fixedVersion":"2.14.3"}],"fix":{"url":"https://github.com/nats-io/nats-server/commit/181b1f51f40b9954c57e9d478e051fb257679356","label":"nats-io/nats-server@181b1f5"},"references":[{"type":"WEB","url":"https://github.com/nats-io/nats-server/releases/tag/v2.12.12"},{"type":"WEB","url":"https://github.com/nats-io/nats-server/releases/tag/v2.14.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58209.json"},{"type":"ADVISORY","url":"https://github.com/nats-io/nats-server/security/advisories/GHSA-7qmq-8cc4-hxwg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58209"},{"type":"FIX","url":"https://github.com/nats-io/nats-server/commit/181b1f51f40b9954c57e9d478e051fb257679356"},{"type":"FIX","url":"https://github.com/nats-io/nats-server/commit/1c429b6fdc5afd4188cc5faf1127f6334896cd87"},{"type":"PACKAGE","url":"https://github.com/nats-io/nats-server"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:31:14.601912092Z"}}