MEDIUM · CVSS 3.1 4.3 EPSS 0.3% · 25th percentile CWE-863

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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 vectorNetwork
Attack complexityLow
Privileges requiredLow
User interactionNone
ScopeUnchanged
ConfidentialityLow
IntegrityNone
AvailabilityNone

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
### 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

References

Source records: GHSA-7qmq-8cc4-hxwg, GO-2026-7010 (OSV.dev) · EPSS by FIRST, 2026-11-24.