Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/nats-io/nats-server/v2
  4. ›
  5. CVE-2025-30215

CVE-2025-30215: NATS Server may fail to authorize certain Jetstream admin APIs

April 15, 2025 (updated April 24, 2025)

nats-server did not include authorization checks on 4 separate admin-level JetStream APIs: account purge, server remove, account stream move, and account stream cancel-move.

In all cases, APIs are not properly restricted to system-account users. Instead, any authorized user can execute the APIs, including across account boundaries, as long as the current user merely has permission to publish on $JS.>.

Only the first seems to be of highest severity. All are included in this single report as they seem likely to have the same underlying root cause.

Reproduction of the ACCOUNT.PURGE case is below. The others are like it.

References

  • advisories.nats.io/CVE/secnote-2025-01.txt
  • github.com/advisories/GHSA-fhg8-qxh5-7q3w
  • github.com/nats-io/nats-server
  • github.com/nats-io/nats-server/security/advisories/GHSA-fhg8-qxh5-7q3w
  • nvd.nist.gov/vuln/detail/CVE-2025-30215
  • osv.dev/vulnerability/GO-2025-3600

Code Behaviors & Features

Detect and mitigate CVE-2025-30215 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.2.0 before 2.10.27, all versions starting from 2.11.0-RC.1 before 2.11.1

Fixed versions

  • 2.11.1
  • 2.10.27

Solution

Upgrade to versions 2.10.27, 2.11.1 or above.

Impact 9.6 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-285: Improper Authorization
  • CWE-287: Improper Authentication

Source file

go/github.com/nats-io/nats-server/v2/CVE-2025-30215.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:56 +0000.