CVE-2025-30215: NATS Server authorization bypass in JetStream admin APIs

CVE-2025-30215 · Severity: critical · CVSS 9.6 · Published 2025-04-15

NATS Server, a high-performance messaging system, contains a vulnerability in its JetStream management component. An authenticated user with basic permissions can bypass security boundaries to delete data or disrupt services belonging to other accounts. This could lead to total data loss or significant service outages across a shared NATS infrastructure.

Technologies: github.com/nats-io/nats-server/v2 (Go), NATS Server. Vendors: Go, NATS.

Quick answers

Is CVE-2025-30215 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-30215 being exploited in the wild.
How severe is CVE-2025-30215?
Critical severity, with a CVSS score of 9.6, published 15 April 2025.
Which products and versions are affected?
github.com/nats-io/nats-server/v2 (Go) SEMVER:introduced=2.11.0-RC.1,fixed=2.11.1, SEMVER:introduced=2.2.0,fixed=2.10.27,introduced=2.11.0,fixed=2.11.1; NATS Server >= 2.2.0, < 2.10.27; >= 2.11.0-RC.1, < 2.11.1.
Is there a fix for CVE-2025-30215?
Yes. github.com/nats-io/nats-server/v2 (Go): upgrade to 2.11.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2025-30215 attacked?
It is attacked over the network, in a hosted service.
Am I affected by CVE-2025-30215?
Check whether you run github.com/nats-io/nats-server/v2 (Go) or NATS Server at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • github.com/nats-io/nats-server/v2 (Go): upgrade to 2.11.1 or later
    go get github.com/nats-io/nats-server/v2@v2.11.1

Technical details

NATS Server fails to enforce proper authorization checks on four administrative JetStream APIs: account purge, server remove, account stream move, and account stream cancel-move. The root cause is a lack of restriction to the system account; any user with permission to publish to the '$JS.>' subject namespace can trigger these actions. An attacker can exploit this to delete all JetStream data for any account (via $JS.API.ACCOUNT.PURGE) or disrupt cluster topology. The vulnerability is patched in versions 2.10.27 and 2.11.1.

Affected products

  • NATS NATS Server >= 2.2.0, < 2.10.27; >= 2.11.0-RC.1, < 2.11.1

Identifiers

  • CVE-2025-30215
  • GHSA-fhg8-qxh5-7q3w
  • GO-2025-3600

Timeline

  • 2025-04-15: advisory: GHSA-fhg8-qxh5-7q3w published
  • 2025-04-15: disclosed
  • 2025-04-15: patched

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.