NATS has pre-auth server panic via leafnode handling
Published 24 Mar 2026 · Updated 10 Sept 2026
Is your project on an affected github.com/nats-io/nats-server/v2?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <2.11.15
- Fixed in
- 2.11.15
go get github.com/nats-io/nats-server/v2@v2.11.15- Affected
- >=2.12.0-RC.1 <2.12.6
- Fixed in
- 2.12.6
go get github.com/nats-io/nats-server/v2@v2.12.6- Affected
- All versions
- Fixed in
- No fix released
Details
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 allows hub/spoke topologies using "leafnode" connections by other nats-servers.
Problem Description
A client which can connect to the leafnode port can crash the nats-server with a certain malformed message pre-authentication.
Affected Versions
Any version before v2.12.6 or v2.11.15
Workarounds
1. Disable leafnode support if not needed. 2. Restrict network connections to your leafnode port, if plausible without compromising the service offered.
References
- This document is canonically: <https://advisories.nats.io/CVE/secnote-2026-10.txt>
- GHSA advisory: <https://github.com/nats-io/nats-server/security/advisories/GHSA-vprv-35vv-q339>
- MITRE CVE entry: <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-33218>
Is GHSA-vprv-35vv-q339 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/nats-io/nats-server/v2, and gives you the command that fixes it.
More advisories for github.com/nats-io/nats-server/v2
- LowCVE-2026-29785NATS Server panic via malicious compression on leafnode port in github.com/nats-io/nats-server · 26 Mar 2026
- LowCVE-2026-33246NATS: Leafnode connections allow spoofing of Nats-Request-Info identity headers in github.com/nats-io/nats-server · 26 Mar 2026
- LowCVE-2026-33219NATS is vulnerable to pre-auth DoS through WebSockets client service in github.com/nats-io/nats-server · 26 Mar 2026
- LowCVE-2026-33222NATS JetStream has an authorization bypass through its Management API in github.com/nats-io/nats-server · 26 Mar 2026
- LowCVE-2026-33215NATS is vulnerable to MQTT hijacking via Client ID in github.com/nats-io/nats-server · 26 Mar 2026
- LowCVE-2026-33217NATS allows MQTT clients to bypass ACL checks in github.com/nats-io/nats-server · 26 Mar 2026
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.