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
- Upgrade github.com/nats-io/nats-server/v2 to version 2.12.12 (or 2.12.8), 2.14.3, or later.
- For deployments that do not require MQTT functionality, ensure MQTT is disabled to avoid exposure.
How to check your project
- Check dependency manifests such as go.mod or build output for github.com/nats-io/nats-server/v2 versions prior to 2.12.12/2.12.8 or 2.14.3.
- Verify whether MQTT support is enabled in NATS Server configuration files or server logs.
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
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
References
- WEB https://github.com/nats-io/nats-server/security/advisories/GHSA-4g68-3pwx-5vfj
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-58214
- WEB https://github.com/nats-io/nats-server/commit/297b166be60fe13144084eed4b25201ead03204a
- WEB https://github.com/nats-io/nats-server/commit/34b09657bb596d5f850eaa5cfc97ea6b2f989a97
- 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-4g68-3pwx-5vfj, GO-2026-6999 (OSV.dev) · EPSS by FIRST, 2026-11-24.