{"id":"CVE-2026-58254","aliases":["BIT-nats-2026-58254","GHSA-p3j5-5hrq-p75h"],"url":"https://o3.security/vulnerability/CVE-2026-58254","summary":"NATS Server: Incomplete fix for CVE-2026-33249: Leaf node connections bypass Nats-Trace-Dest permission check","details":"### Background\n\nNATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT and edge computing.\n\nThe NATS Server supports leafnode connections between servers and message tracing through NATS headers.\n\n### Problem Description\n\nMessage trace destination checks were applied to ordinary client connections but not consistently to messages arriving through leafnode connections.\n\nA leafnode operator could cause trace events to be sent to subjects that would not otherwise be permitted and could use trace-only behavior to prevent normal delivery or storage of affected messages.\n\nTrace events can include routing, subscription, account, service import and JetStream metadata. The payload of the original application message is not chosen through the trace event itself.\n\n### Affected Versions\n\nVersions v2.14.2, v2.12.7 and below are vulnerable. The issue is fixed in v2.14.3 and v2.12.8.\n\n### Workarounds\n\nWhere possible, avoid granting publish paths from less-trusted leaf nodes into subjects for which trace-only behavior would affect delivery guarantees. No other known workarounds are available aside from upgrading to a fixed release.\n\n### References\n\n * GHSA advisory: <https://github.com/nats-io/nats-server/security/advisories/GHSA-p3j5-5hrq-p75h>\n * Credit: Koda Reef","published":"2026-07-08T19:56:58.311Z","modified":"2026-10-28T02:30:42.483414742Z","cvss":null,"epss":{"score":0.00308,"percentile":0.2425,"asOf":"2026-11-20"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/nats-io/nats-server/v2","fixedVersion":"2.12.8"},{"ecosystem":"Go","name":"github.com/nats-io/nats-server/v2","fixedVersion":"2.14.3"}],"fix":{"url":"https://github.com/nats-io/nats-server/commit/cbe845932980b71563efac5cfa4cc751c88936cd","label":"nats-io/nats-server@cbe8459"},"references":[{"type":"WEB","url":"https://github.com/nats-io/nats-server/releases/tag/v2.12.8"},{"type":"WEB","url":"https://github.com/nats-io/nats-server/releases/tag/v2.14.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58254.json"},{"type":"ADVISORY","url":"https://github.com/nats-io/nats-server/security/advisories/GHSA-p3j5-5hrq-p75h"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58254"},{"type":"FIX","url":"https://github.com/nats-io/nats-server/commit/cbe845932980b71563efac5cfa4cc751c88936cd"},{"type":"PACKAGE","url":"https://github.com/nats-io/nats-server"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:42.483414742Z"}}