CVE-2026-58250 — Github.com/nats-io/nats-server/v2 — CWE-476
### 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
### 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
CVSS 8.6/10 · HIGH · 01.12.2026
CWE: CWE-476
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS VULNERABILITY?
Summary: ### 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 lea…
Affected: github.com/nats-io/nats-server/v2
⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · no user interaction (UI:N) · low attack complexity (AC:L).
⚠️ Scope changes (S:C) — impact can cross security boundaries.
🌍 REAL WORLD IMPACT
Partial confidentiality disclosure (C:L); service can be completely taken down; pivot to other systems possible.
🛡️ REMEDIATION
→ Apply vendor security update for github.com/nats-io/nats-server/v2.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.
⚠️ URGENCY
⚠️ This week (7 days) — High risk, anonymous remote.
────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]