CVE-2026-58254: nats-server Leaf node connections bypass Nats-Trace-Dest permission check
Published 2026-11-20 · Updated 2026-11-23 · Also known as BIT-nats-2026-58254, GHSA-p3j5-5hrq-p75h, GO-2026-7025
Summary
nats-server fails to consistently apply message trace destination checks to messages arriving through leafnode connections. Administrators and operators of NATS server deployments utilizing leaf nodes should review their systems and update to fixed versions.
Who is affected
Affected deployments include those running nats-server versions v2.14.2, v2.12.7, and below with leaf node connections enabled. A leafnode operator can exploit this vulnerability to send trace events to subjects that would otherwise not be permitted, and use trace-only behavior to disrupt normal delivery or storage of affected messages.
Exploitability
The vulnerability can be exploited over the network with low attack complexity and requires no privileges or user interaction, resulting in a CVSS base score of 6.5. The vector indicates low confidentiality and integrity impact with no impact on availability. EPSS is currently 0.002 with a 0.130 percentile, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade Go package github.com/nats-io/nats-server/v2 to version 2.12.8 or 2.14.3.
- Where possible, avoid granting publish paths from less-trusted leaf nodes into subjects for which trace-only behavior would affect delivery guarantees.
How to check your project
- Check Go dependency configuration files (such as go.mod) to determine if github.com/nats-io/nats-server/v2 is used.
- Verify the active nats-server version to confirm if it falls within the vulnerable ranges of introduced 0, fixed 2.12.8 or introduced 2.14.0-RC.1, fixed 2.14.3.
Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/nats-io/nats-server/v2 |
>= 0, < 2.12.8 | 2.12.8 | go get github.com/nats-io/nats-server/[email protected] |
| Go | github.com/nats-io/nats-server/v2 |
>= 2.14.0-RC.1, < 2.14.3 | 2.14.3 | go get github.com/nats-io/nats-server/[email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | Low |
| Integrity | Low |
| Availability | None |
FAQ
What components are affected by CVE-2026-58254?
The vulnerability affects nats-server (github.com/nats-io/nats-server/v2) specifically concerning leaf node connections and the Nats-Trace-Dest permission check.
Are application message payloads exposed via this trace flaw?
No. The payload of the original application message is not chosen through the trace event itself, though trace events can include routing, subscription, account, service import, and JetStream metadata.
What is the recommended fix if upgrading is not immediately possible?
Aside from upgrading to a fixed release, you can avoid granting publish paths from less-trusted leaf nodes into subjects where trace-only behavior would affect delivery guarantees.
Original advisory description
References
- WEB https://github.com/nats-io/nats-server/security/advisories/GHSA-p3j5-5hrq-p75h
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-58254
- WEB https://github.com/nats-io/nats-server/commit/cbe845932980b71563efac5cfa4cc751c88936cd
- PACKAGE https://github.com/nats-io/nats-server
- WEB https://github.com/nats-io/nats-server/releases/tag/v2.12.8
- WEB https://github.com/nats-io/nats-server/releases/tag/v2.14.3
Source records: GHSA-p3j5-5hrq-p75h, GO-2026-7025 (OSV.dev) · EPSS by FIRST, 2026-11-26.