CVE-2026-33247: Github.com/nats io/nats server/v2 NATS Credentials Are Exposed Vulnerability

HIGH
Advisory Identifier: GHSA-x6g4-f6q3-fqvv
CVSS 7.4
CWE-215
Published
Advisory Summary

CVE-2026-33247 is a HIGH (CVSS 7.4) nats credentials are exposed vulnerability (CWE-215: Insertion of Sensitive Information Into Debugging Code) affecting Github.com/nats io/nats server/v2 libraries in the Go ecosystem. The issue involves nats credentials are exposed in monitoring port via command-line argv. Remediation is available by upgrading affected packages to version 2.11.15, 2.12.6.

CVE-2026-33247 at a Glance

CVE Identifier CVE-2026-33247
GHSA Identifier GHSA-x6g4-f6q3-fqvv
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-215: Insertion of Sensitive Information Into Debugging Code
Affected Product Github.com/nats io/nats server/v2
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-33247

To remediate this vulnerability, upgrade all affected Github.com/nats io/nats server/v2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/nats-io/nats-server/v2 fixed: 2.11.15
Upgrade github.com/nats-io/nats-server/v2 to 2.11.15
github.com/nats-io/nats-server/v2 fixed: 2.12.6
Upgrade github.com/nats-io/nats-server/v2 to 2.12.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/nats-io/nats-server/v2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-33247, inspect your project dependencies for Github.com/nats io/nats server/v2:

inspect dependencies for github.com/nats-io/nats-server/v2

Analyze the terminal output to locate any version of Github.com/nats io/nats server/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.11.15), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-215: Insertion of Sensitive Information Into Debugging Code, where the product inserts sensitive information into debugging code, which could expose this information if the debugging code is not disabled in production. In Github.com/nats io/nats server/v2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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 provides an optional monitoring port, which provides access to sensitive data. The nats-server can take certain configuration options on the command-line instead of requiring a configuration file. ### Problem Description 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. ### Patches Fixed in nats-server 2.12.6 & 2.11.15 ### Workarounds The NATS Maintainers are bemused at the concept of someone deploying a real configuration using `--pass` to avoid a config file, but also enabling monitoring. Configure credentials inside a configuration file instead of via argv. 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.

CVE-2026-33247 Affected Github.com/nats io/nats server/v2 Versions

2 component(s)
Fixed Versions:
2.11.152.12.6
Product / Package Ecosystem Affected Versions Fixed Version
github.com/nats-io/nats-server/v2
Go
< 2.11.15
2.11.15
github.com/nats-io/nats-server/v2
Go
≥ 2.12.0-RC.1
< 2.12.6
2.12.6

References

Frequently Asked Questions

What is CVE-2026-33247?
CVE-2026-33247 is a security vulnerability in Github.com/nats io/nats server/v2 involving NATS credentials are exposed in monitoring port via command-line argv under CWE-215: Insertion of Sensitive Information Into Debugging Code.
Which Github.com/nats io/nats server/v2 versions are affected?
Affected versions include releases prior to 2.11.15, 2.12.6 across affected packages: github.com/nats-io/nats-server/v2.
What version fixes CVE-2026-33247?
Upgrading to 2.11.15, 2.12.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/nats-io/nats-server/v2 affected?
Yes, github.com/nats-io/nats-server/v2 is affected in releases prior to 2.11.15, 2.12.6. Upgrade your dependency to 2.11.15, 2.12.6 or later.
What is the CVSS score of CVE-2026-33247?
CVE-2026-33247 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2026-33247?
CVE-2026-33247 is classified under CWE-215: Insertion of Sensitive Information Into Debugging Code (The product inserts sensitive information into debugging code, which could expose this information if the debugging code is not disabled in production.).
How can I check Go dependencies for CVE-2026-33247?
Run the dependency tree command: 'inspect dependencies for github.com/nats-io/nats-server/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-x6g4-f6q3-fqvv",
  "modified" : "2026-03-27T20:57:01Z",
  "published" : "2026-03-24T20:44:00Z",
  "aliases" : [ "CVE-2026-33247" ],
  "summary" : "NATS credentials are exposed in monitoring port via command-line argv",
  "details" : "### Background\n\nNATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT, and edge computing.\n\nThe nats-server provides an optional monitoring port, which provides access to sensitive data.  The nats-server can take certain configuration options on the command-line instead of requiring a configuration file.\n\n\n### Problem Description\n\nIf 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.\n\nThe `/debug/vars` end-point contains an unredacted copy of argv.\n\n### Patches\n\nFixed in nats-server 2.12.6 & 2.11.15\n\n### Workarounds\n\nThe NATS Maintainers are bemused at the concept of someone deploying a real configuration using `--pass` to avoid a config file, but also enabling monitoring.\n\nConfigure credentials inside a configuration file instead of via argv.\n\nDo not enable the monitoring port if using secrets in argv.\n\nBest practice remains to not expose the monitoring port to the Internet, or to untrusted network sources.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/nats-io/nats-server/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.11.15"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/nats-io/nats-server/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.12.0-RC.1"
      }, {
        "fixed" : "2.12.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nats-io/nats-server/security/advisories/GHSA-x6g4-f6q3-fqvv"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-33247"
  }, {
    "type" : "WEB",
    "url" : "https://advisories.nats.io/CVE/secnote-2026-14.txt"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nats-io/nats-server"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2026-4827"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-215" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-24T20:44:00Z",
    "nvd_published_at" : "2026-03-25T20:16:33Z"
  }
}