NATS Server and Streaming Server fails to enforce negative user permissions, may allow denied subjects
Published 11 Jul 2024 · Updated 30 Oct 2024
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.8.2
- Fixed in
- 2.8.2
go get github.com/nats-io/nats-server/v2@v2.8.2- Affected
- <0.24.6
- Fixed in
- 0.24.6
go get github.com/nats-io/nats-streaming-server@v0.24.6Details
NATS.io NATS Server before 2.8.2 and Streaming Server before 0.24.6 could allow a remote attacker to bypass security restrictions, caused by the failure to enforce negative user permissions in one scenario. By using a queue subscription on the wildcard, an attacker could exploit this vulnerability to allow denied subjects.
Is GHSA-2h2x-8hh2-mfq8 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
- MediumCVE-2026-58208NATS Server: MQTT-over-WebSocket Path Can Crash WebSocket-Only JetStream Servers Before MQTT Is Enabled · 20 Nov 2026
- HighCVE-2026-58210NATS Server allows unauthenticated memory exhaustion through incomplete MQTT CONNECT packets · 20 Nov 2026
- MediumCVE-2026-58209NATS Server MQTT retained messages and QoS replay bypass subscription deny rules · 20 Nov 2026
- MediumCVE-2026-58214NATS Server MQTT subscribe permission bypass exposes internal QoS 2 metadata · 19 Nov 2026
- HighCVE-2026-58213NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection · 19 Nov 2026
- LowCVE-2026-29785NATS Server panic via malicious compression on leafnode port 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.