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

CVE-2026-58214: NATS Server MQTT subscribe permission bypass exposes internal QoS 2 metadata

Published 2026-11-19 · Updated 2026-11-23 · Also known as BIT-nats-2026-58214, GHSA-4g68-3pwx-5vfj, GO-2026-6999

Summary

A permission bypass vulnerability in NATS Server MQTT protocol support allows authenticated clients to access internal QoS 2 metadata. Teams running NATS Server with MQTT enabled should upgrade to a fixed release.

Who is affected

This flaw affects deployments using NATS Server MQTT features where subscribe permissions are configured to restrict subject access. Authenticated MQTT clients can bypass subscribe restrictions on internal `$MQTT.*` delivery subjects. While message payloads remain unexposed, internal MQTT QoS 2 protocol metadata for sessions in the account can be viewed.

Exploitability

The vulnerability carries a CVSS 3.1 base score of 4.3 (Medium) with network vector, low complexity, low privileges required, and no user interaction required. The EPSS score is 0.003 (0.291 percentile), indicating low predicted exploitation activity. CISA KEV confirms there is no evidence of active exploitation.

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

Are MQTT message payloads exposed by this vulnerability?

No. The permission bypass exposes internal MQTT QoS 2 protocol metadata, but message payloads are not exposed.

Are NATS deployments without MQTT affected?

No. Deployments that do not use or enable MQTT support are unaffected by this issue.

Is there a temporary workaround available without upgrading?

There is no known workaround for deployments that require MQTT functionality; upgrading to a fixed release is required.

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 uses internal `$MQTT.*` subjects to implement MQTT protocol features such as QoS handling. ### Problem Description An authenticated MQTT client could subscribe to an internal MQTT delivery subject that was not intended to be available to clients. This bypassed configured subscribe permissions for that internal subject family and exposed MQTT QoS2 protocol metadata for sessions in the account. Message payloads were not exposed through this path. This issue was related to an incomplete restriction on internal MQTT subjects. It affected MQTT users whose ordinary subscribe permissions would not otherwise allow access to those internal subjects. ### Affected Versions Versions v2.14.2, v2.12.7 and below are vulnerable. The issue is fixed in v2.14.3 and v2.12.8. ### 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-4g68-3pwx-5vfj> * Credit: Koda Reef

References

Source records: GHSA-4g68-3pwx-5vfj, GO-2026-6999 (OSV.dev) · EPSS by FIRST, 2026-11-24.