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

Source: https://junglewise.ai/threats/cve-2025-30215-nats-server-authorization-bypass-in-jetstream-admin-apis  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-04-15. Updated: 2026-06-05  
License: CC BY 4.0 with a link back

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)](https://junglewise.ai/threats/technologies/github-com-nats-io-nats-server-v2), [NATS Server](https://junglewise.ai/threats/technologies/nats-server). Vendors: [Go](https://junglewise.ai/threats/vendors/go), [NATS](https://junglewise.ai/threats/vendors/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

  ```sh
  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

- [https://api.github.com/users/zarqman](https://api.github.com/users/zarqman)
- [https://github.com/zarqman](https://github.com/zarqman)
- [https://api.github.com/users/zarqman/gists%7B/gist_id%7D](https://api.github.com/users/zarqman/gists%7B/gist_id%7D)
- [https://api.github.com/users/zarqman/repos](https://api.github.com/users/zarqman/repos)
- [https://avatars.githubusercontent.com/u/22556?v=4](https://avatars.githubusercontent.com/u/22556?v=4)
- [https://api.github.com/users/zarqman/events%7B/privacy%7D](https://api.github.com/users/zarqman/events%7B/privacy%7D)

## Related threats

- [GO-2026-4833 - NATS is vulnerable to MQTT hijacking via Client ID in github.com/nats-io/nats-server](https://junglewise.ai/threats/cve-2026-33215-nats-is-vulnerable-to-mqtt-hijacking-via-client-id)
- [NATS Server: Incomplete Stripping of Nats-Request-Info Header Allows Identity Spoofing](https://junglewise.ai/threats/cve-2026-33223-nats-server-incomplete-stripping-of-nats-request-info-header)
- [GO-2026-4830 - NATS: Leafnode connections allow spoofing of Nats-Request-Info identity headers in github.com/nats-io/nats-server](https://junglewise.ai/threats/cve-2026-33246-nats-leafnode-connections-allow-spoofing-of-nats-request-info)
- [GO-2026-4832 - NATS JetStream has an authorization bypass through its Management API in github.com/nats-io/nats-server](https://junglewise.ai/threats/cve-2026-33222-nats-jetstream-has-an-authorization-bypass-through-its-management)
- [NATS has mTLS verify_and_map authentication bypass via incorrect Subject DN matching](https://junglewise.ai/threats/cve-2026-33248-nats-has-mtls-verify-and-map-authentication-bypass-via-incorrect)
