NATS credentials are exposed in monitoring port via command-line argv
Description
NATS-Server is a High-Performance server for NATS.io, a cloud and edge native messaging system. Prior to versions 2.11.15 and 2.12.6, if a nats-server is run with static credentials for all clients provided via argv (the command-line), then those credentials are visible to any user who can see the monitoring port, if that too is enabled. The /debug/vars end-point contains an unredacted copy of argv. Versions 2.11.15 and 2.12.6 contain a fix. As a workaround, configure credentials inside a configuration file instead of via argv, and do not enable the monitoring port if using secrets in argv. Best practice remains to not expose the monitoring port to the Internet, or to untrusted network sources.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/nats-io/nats-server/v2Go | < 2.11.15 | 2.11.15 |
github.com/nats-io/nats-server/v2Go | >= 2.12.0-RC.1, < 2.12.6 | 2.12.6 |
Affected products
1- Range: < 2.11.15
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- github.com/advisories/GHSA-x6g4-f6q3-fqvvghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-33247ghsaADVISORY
- advisories.nats.io/CVE/secnote-2026-14.txtghsax_refsource_MISCWEB
- github.com/nats-io/nats-server/security/advisories/GHSA-x6g4-f6q3-fqvvghsax_refsource_CONFIRMWEB
- pkg.go.dev/vuln/GO-2026-4827ghsaWEB
News mentions
0No linked articles in our index yet.