GoWorst: Critical29 advisories
github.com/nats-io/nats-server/v2: known vulnerabilities
github.com/nats-io/nats-server/v2 has 29 reviewed security advisories in the GitHub Advisory Database — 1 critical, 17 high, 9 moderate, 2 low. The most recent was published 2026-03-25. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the github.com/nats-io/nats-server/v2 versions running across your servers, containers and images, and ranks what to patch first.
How to fix github.com/nats-io/nats-server/v2
Upgrade github.com/nats-io/nats-server/v2 to a release at or above the fixed version shown for each advisory below. For Go:
go get github.com/nats-io/nats-server/v2@2.12.6 && go mod tidy (check govulncheck)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (29)
NATS has mTLS verify_and_map authentication bypass via incorrect Subject DN matching
Moderate 4.2 CWE-287 CWE-295
— Affected: from 2.12.0-RC.1 up to 2.12.6. Fixed in 2.12.6. Published 2026-03-25. GHSA-3f24-pcvm-5jqc · CVE-2026-33248
NATS Server panic via malicious compression on leafnode port
High 7.5 CWE-476
— Affected: from 2.12.0-RC.1 up to 2.12.5. Fixed in 2.12.5. Published 2026-03-25. GHSA-52jh-2xxh-pwh6 · CVE-2026-29785
NATS: Leafnode connections allow spoofing of Nats-Request-Info identity headers
Moderate 6.4 CWE-287 CWE-290
— Affected: from 2.12.0-RC.1 up to 2.12.6. Fixed in 2.12.6. Published 2026-03-25. GHSA-55h8-8g96-x4hj · CVE-2026-33246
NATS: Message tracing can be redirected to arbitrary subject
Moderate 4.3 CWE-863
— Affected: from 2.12.0-preview.1 up to 2.12.6. Fixed in 2.12.6. Published 2026-03-25. GHSA-8m2x-3m6q-6w8j · CVE-2026-33249
NATS is vulnerable to pre-auth DoS through WebSockets client service
Moderate 5.3 CWE-770
— Affected: from 2.12.0-RC.1 up to 2.12.6. Fixed in 2.12.6. Published 2026-03-25. GHSA-8r68-gvr4-jh7j · CVE-2026-33219
NATS JetStream has an authorization bypass through its Management API
Moderate 4.9 CWE-285
— Affected: from 2.12.0-RC.1 up to 2.12.6. Fixed in 2.12.6. Published 2026-03-25. GHSA-9983-vrx2-fg9c · CVE-2026-33222
NATS allows MQTT clients to bypass ACL checks
High 7.1 CWE-863
— Affected: from 2.12.0-RC.1 up to 2.12.6. Fixed in 2.12.6. Published 2026-03-25. GHSA-jxxm-27vp-c3m5 · CVE-2026-33217
NATS: Pre-auth remote server crash via WebSocket frame length overflow in wsRead
High 7.5 CWE-190
— Affected: from 2.12.0 up to 2.12.5. Fixed in 2.12.5. Published 2026-03-25. GHSA-pq2q-rcw4-3hr6 · CVE-2026-27889
NATS Server: Incomplete Stripping of Nats-Request-Info Header Allows Identity Spoofing
Moderate 6.4 CWE-290
— Affected: from 2.12.0-RC.1 up to 2.12.6. Fixed in 2.12.6. Published 2026-03-25. GHSA-pwx7-fx9r-hr4h · CVE-2026-33223
NATS has MQTT plaintext password disclosure
High 8.6 CWE-256
— Affected: from 2.12.0-RC.1 up to 2.12.6. Fixed in 2.12.6. Published 2026-03-25. GHSA-v722-jcv5-w7mc · CVE-2026-33216
NATS has pre-auth server panic via leafnode handling
High 7.5 CWE-20
— Affected: from 2.12.0-RC.1 up to 2.12.6. Fixed in 2.12.6. Published 2026-03-25. GHSA-vprv-35vv-q339 · CVE-2026-33218
NATS credentials are exposed in monitoring port via command-line argv
High 7.4 CWE-215
— Affected: from 2.12.0-RC.1 up to 2.12.6. Fixed in 2.12.6. Published 2026-03-25. GHSA-x6g4-f6q3-fqvv · CVE-2026-33247
NATS is vulnerable to MQTT hijacking via Client ID
Moderate 6.5 CWE-287
— Affected: from 2.12.0-RC.1 up to 2.12.6. Fixed in 2.12.6. Published 2026-03-24. GHSA-fcjp-h8cc-6879 · CVE-2026-33215
nats-server websockets are vulnerable to pre-auth memory DoS
Moderate 5.9 CWE-409 CWE-770
— Affected: from 2.12.0-RC.1 up to 2.12.3. Fixed in 2.12.3. Published 2026-02-24. GHSA-qrvq-68c2-7grw · CVE-2026-27571
NATS Server may fail to authorize certain Jetstream admin APIs
Critical 9.6 CWE-285 CWE-287
— Affected: from 2.2.0 up to 2.10.27. Fixed in 2.10.27. Published 2025-04-16. GHSA-fhg8-qxh5-7q3w · CVE-2025-30215
NATS Server and Streaming Server fails to enforce negative user permissions, may allow denied subjects
High 6.5 CWE-863
— Affected: before 2.8.2. Fixed in 2.8.2. Published 2024-07-11. GHSA-2h2x-8hh2-mfq8 · CVE-2022-29946
NATS server TLS missing ciphersuite settings when CLI flags used
Low
— Affected: before 2.2.3. Fixed in 2.2.3. Published 2024-05-14. GHSA-jj54-5q2m-q7pj · CVE-2021-32026
xkeys seal encryption used fixed key for all encryption
High 7.5 CWE-321 CWE-325
— Affected: from 2.10.0 up to 2.10.4. Fixed in 2.10.4. Published 2023-10-31. GHSA-mr45-rx8q-wcm9 · CVE-2023-46129
Duplicate Advisory: NATS.io: Adding accounts for just the system account adds auth bypass
Moderate
— Affected: from 2.10.0 up to 2.10.2. Fixed in 2.10.2. Published 2023-10-30. GHSA-4frv-5fj6-4p25
NATS.io: Adding accounts for just the system account adds auth bypass
High CWE-305
— Affected: from 2.10.0 up to 2.10.2. Fixed in 2.10.2. Published 2023-10-19. GHSA-fr2g-9hjm-wr23 · CVE-2023-47090
Arbitrary file write in nats-server
High 6.5 CWE-22
— Affected: from 2.2.0 up to 2.7.4. Fixed in 2.7.4. Published 2022-03-10. GHSA-6h3m-36w8-hv68 · CVE-2022-26652
Incorrect Authorization in NATS nats-server
High 8.8 CWE-863
— Affected: from 2.0.0 up to 2.7.2. Fixed in 2.7.2. Published 2022-02-08. GHSA-g6w6-r76c-28j7 · CVE-2022-24450
Incorrect handling of credential expiry by /nats-io/nats-server
High CWE-284
— Affected: before 2.1.9. Fixed in 2.1.9. Published 2021-05-21. GHSA-2c64-vj8g-vwrq · CVE-2020-26892
Import loops in account imports, nats-server DoS
Low 7.5 CWE-400
— Affected: before 2.2.0. Fixed in 2.2.0. Published 2021-05-21. GHSA-gwj5-3vfq-q992
Nil dereference in NATS JWT causing DoS of nats-server
High 7.5 CWE-476
— Affected: before 2.1.9. Fixed in 2.1.9. Published 2021-05-21. GHSA-hmm9-r2m2-qg9w · CVE-2020-26521
github.com/nats-io/nats-server Import token permissions checking not enforced
High 7.5 CWE-755 CWE-863
— Affected: before 2.2.0. Fixed in 2.2.0. Published 2021-05-21. GHSA-j756-f273-xhp4 · CVE-2021-3127
Duplicate Advisory: Incorrect Access Control in github.com/nats-io/jwt and github.com/nats-io/nats-server/v2
High 7.5 CWE-284 CWE-863
— Affected: before 2.2.0. Fixed in 2.2.0. Published 2021-03-16. GHSA-9r5x-fjv3-q6h4 · CVE-2021-3127
Denial of service in github.com/nats-io/nats-server/server
High 7.5 CWE-400
— Affected: before 2.2.0. Fixed in 2.2.0. Published 2021-03-07. GHSA-m4jx-6526-vvhm · CVE-2020-28466
Integer Overflow or Wraparound in NATS Server
High 7.5 CWE-190
— Affected: before 2.2.0. Fixed in 2.2.0. Published 2019-07-29. GHSA-jp4j-47f9-2vc3 · CVE-2019-13126
Find github.com/nats-io/nats-server/v2 across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.