Denial of service in github.com/nats-io/nats-server/server
Published 15 Feb 2022 · Updated 10 Sept 2026
Is your project on an affected github.com/nats-io/nats-server?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <2.2.0
- Fixed in
- 2.2.0
go get github.com/nats-io/nats-server@v2.2.0- Affected
- <2.2.0
- Fixed in
- 2.2.0
go get github.com/nats-io/nats-server/v2@v2.2.0Details
This affects all versions of package github.com/nats-io/nats-server/server. Untrusted accounts are able to crash the server using configs that represent a service export/import cycles. Disclaimer from the maintainers - Running a NATS service which is exposed to untrusted users presents a heightened risk. Any remote execution flaw or equivalent seriousness, or denial-of-service by unauthenticated users, will lead to prompt releases by the NATS maintainers. Fixes for denial of service issues with no threat of remote execution, when limited to account holders, are likely to just be committed to the main development branch with no special attention. Those who are running such services are encouraged to build regularly from git.
Is GHSA-m4jx-6526-vvhm 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, and gives you the command that fixes it.
More advisories for github.com/nats-io/nats-server
- 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
- Advisorynvd.nist.gov/vuln/detail/CVE-2020-28466
- Linkgithub.com/nats-io/nats-server/pull/1731
- Linkgithub.com/nats-io/nats-server/pull/1731/commits/2e3c22672936f4980d343fb1d328b38919e74796
- Linkpkg.go.dev/vuln/GO-2022-0855
- Linksnyk.io/vuln/SNYK-GOLANG-GITHUBCOMNATSIONATSSERVERSERVER-1042967
- Linkwww.openwall.com/lists/oss-security/2021/03/16/1
- Linkwww.openwall.com/lists/oss-security/2021/03/16/2
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.