Executive brief
NATS-Server is a high-performance messaging system used for cloud and IoT communications. A security flaw in certain versions allows MQTT user passwords to be accidentally exposed in plaintext through the server's monitoring interface. If an attacker accesses this interface, they could steal credentials, potentially leading to unauthorized access to the messaging network and sensitive data.
Technical details
A vulnerability exists in NATS-Server where MQTT passwords are incorrectly handled during authentication processing. Specifically, the server misclassifies these passwords as non-authenticating JSON Web Token (JWT) identity statements, causing them to be included in data served by monitoring endpoints. An unauthenticated attacker with network access to the monitoring port can retrieve these plaintext credentials without any user interaction. This issue affects MQTT deployments using usercode/password authentication in versions prior to 2.11.15 and 2.12.6. Patches are available in versions 2.11.15 and 2.12.6; as a workaround, administrators should restrict access to monitoring endpoints.
Affected products
- nats-io nats-server < 2.11.15, >= 2.12.0-RC.1 < 2.12.6
- Red Hat Multicluster Global Hub 1.4.5 1.4.5
- Red Hat Multicluster Global Hub 1.5.4 1.5.4
- Red Hat Multicluster Global Hub 1.6.2 1.6.2
Timeline
- 2026-03-24: disclosed: Initial disclosure by NATS.io and GitHub advisory publication.
- 2026-03-24: patched: Fixes released in versions 2.11.15 and 2.12.6.
- 2026-03-25: advisory: CVE-2026-33216 published.
References
- https://advisories.nats.io/CVE/secnote-2026-05.txt
- https://github.com/nats-io/nats-server/commit/b5b63cfc35a57075e09c1f57503d31721bed8099
- https://github.com/nats-io/nats-server/security/advisories/GHSA-v722-jcv5-w7mc
- https://access.redhat.com/errata/RHSA-2026:21769
- https://access.redhat.com/errata/RHSA-2026:22347
- https://access.redhat.com/errata/RHSA-2026:23345
- https://access.redhat.com/security/cve/CVE-2026-33216