CVE-2026-58250: NATS Server Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-3g5q-cfh2-cq67
CVSS 8.6
CWE-476
Published
Advisory Summary

CVE-2026-58250 is a HIGH (CVSS 8.6) denial of service vulnerability (CWE-476: NULL Pointer Dereference) affecting NATS Server libraries in the Go ecosystem. The issue involves denial of service via repeated pre-authentication leafnode info messages. Remediation is available by upgrading affected packages to version 2.11.17, 2.12.8.

CVE-2026-58250 at a Glance

CVE Identifier CVE-2026-58250
GHSA Identifier GHSA-3g5q-cfh2-cq67
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-476: NULL Pointer Dereference
Affected Product NATS Server
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.6

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

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

How to Fix CVE-2026-58250

To remediate this vulnerability, upgrade all affected NATS Server 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.17
Upgrade github.com/nats-io/nats-server/v2 to 2.11.17
github.com/nats-io/nats-server/v2 fixed: 2.12.8
Upgrade github.com/nats-io/nats-server/v2 to 2.12.8
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-58250, inspect your project dependencies for NATS Server:

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

Analyze the terminal output to locate any version of NATS Server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.11.17), 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-476: NULL Pointer Dereference, where the product dereferences a pointer that it expects to be valid but is null. In NATS Server, 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 supports leafnode connections between servers. ### Problem Description An unauthenticated peer with network access to a leafnode listener with compression enabled could crash the server during the pre-authentication leafnode handshake. The issue occurs after repeated leafnode `INFO` protocol messages before a leafnode connection had completed authentication and account setup. Certain state expected later in the handshake could be nil and then later dereferenced, causing a process panic. ### Affected Versions Versions v2.12.7, v2.11.16 and below are vulnerable. The issue is fixed in v2.12.8 and v2.11.17. ### Workarounds Disabling leafnode compression can mitigate the issue until fixed versions are deployed. ### Resources * GHSA advisory: <https://github.com/nats-io/nats-server/security/advisories/GHSA-3g5q-cfh2-cq67> * Credit: Koda Reef

CVE-2026-58250 Affected NATS Server Versions

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

References

Frequently Asked Questions

What is CVE-2026-58250?
CVE-2026-58250 is a security vulnerability in NATS Server involving Denial of service via repeated pre-authentication leafnode INFO messages under CWE-476: NULL Pointer Dereference.
Which NATS Server versions are affected?
Affected versions include releases prior to 2.11.17, 2.12.8 across affected packages: github.com/nats-io/nats-server/v2.
What version fixes CVE-2026-58250?
Upgrading to 2.11.17, 2.12.8 (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.17, 2.12.8. Upgrade your dependency to 2.11.17, 2.12.8 or later.
What is the CVSS score of CVE-2026-58250?
CVE-2026-58250 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H.
What CWE is associated with CVE-2026-58250?
CVE-2026-58250 is classified under CWE-476: NULL Pointer Dereference (The product dereferences a pointer that it expects to be valid but is NULL.).
How can I check Go dependencies for CVE-2026-58250?
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-3g5q-cfh2-cq67",
  "modified" : "2026-12-01T21:20:07Z",
  "published" : "2026-12-01T21:20:07Z",
  "aliases" : [ "CVE-2026-58250" ],
  "summary" : "NATS Server: Denial of service via repeated pre-authentication leafnode INFO messages",
  "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 supports leafnode connections between servers.\n\n### Problem Description\n\nAn unauthenticated peer with network access to a leafnode listener with compression enabled could crash the server during the pre-authentication leafnode handshake.\n\nThe issue occurs after repeated leafnode `INFO` protocol messages before a leafnode connection had completed authentication and account setup. Certain state expected later in the handshake could be nil and then later dereferenced, causing a process panic.\n\n### Affected Versions\n\nVersions v2.12.7, v2.11.16 and below are vulnerable. The issue is fixed in v2.12.8 and v2.11.17.\n\n### Workarounds\n\nDisabling leafnode compression can mitigate the issue until fixed versions are deployed.\n\n### Resources\n\n * GHSA advisory: <https://github.com/nats-io/nats-server/security/advisories/GHSA-3g5q-cfh2-cq67>\n * Credit: Koda Reef",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/nats-io/nats-server/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.11.17"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/nats-io/nats-server/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.12.0-RC.1"
      }, {
        "fixed" : "2.12.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nats-io/nats-server/security/advisories/GHSA-3g5q-cfh2-cq67"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-58250"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nats-io/nats-server/commit/8dcb26eaea78fdcbe96dbee5986d6019fd5cb94a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nats-io/nats-server/commit/fc5fe39177533e9dbdd651d2458285bfae1dde27"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nats-io/nats-server"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nats-io/nats-server/releases/tag/v2.11.17"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nats-io/nats-server/releases/tag/v2.12.8"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-476" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-01T21:20:07Z",
    "nvd_published_at" : "2026-07-08T20:16:54Z"
  }
}