HighGHSA-jp4j-47f9-2vc3CVE-2019-13126GO-2022-0852

Integer Overflow or Wraparound in NATS Server

Published 18 May 2021 · Updated 10 Sept 2026

Is your project on an affected github.com/nats-io/nats-server/v2?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<2.2.0
Fixed in
2.2.0
Update to the fixed version for your release line, for example:go get github.com/nats-io/nats-server/v2@v2.2.0

Details

An integer overflow in NATS Server before 2.2.0 allows a remote attacker to crash the server by sending a crafted request.

Specific Go Packages Affected

github.com/nats-io/nats-server/v2/server

Is GHSA-jp4j-47f9-2vc3 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
All 55 advisories for github.com/nats-io/nats-server/v2

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.