Skip to content
DayZeroHub
Medium Not yet writtenCVSS 5.3GHSA-p3j5-5hrq-p75hCVE-2026-58254BIT-nats-2026-58254GO-2026-7025

CVE-2026-58254: nats-server Leaf node connections bypass Nats-Trace-Dest permission check

github.com/nats-io/nats-server/v2

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-58254: medium-severity vulnerability (CVSS 5.3) in github.com/nats-io/nats-server/v2.

What happened

Original description from the source: ### Background NATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT and edge computing. The NATS Server supports leafnode connections between servers and message tracing through NATS headers. ### Problem Description Message trace destination checks were applied to ordinary client connections but not consistently to messages arriving through leafnode connections. A 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. Trace 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. ### Affected Versions Versions v2.14.2, v2.12.7 and below are vulnerable. The issue is fixed in v2.14.3 and v2.12.8. ### Workarounds Where 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. ### References * GHSA advisory: <https://github.com/nats-io/nats-server/security/advisories/GHSA-p3j5-5hrq-p75h> * Credit: Koda Reef

Why it matters

Medium severity, CVSS 5.3.

Affected products and versions

github.com/nats-io/nats-server/v2 < 2.12.8 (fixed in 2.12.8); github.com/nats-io/nats-server/v2 >= 2.14.0-RC.1, < 2.14.3 (fixed in 2.14.3)

ProductVersionsFixed in
github.com/nats-io/nats-server/v2< 2.12.82.12.8
github.com/nats-io/nats-server/v2>= 2.14.0-RC.1, < 2.14.32.14.3

Action recommended by the source

Upgrade to a fixed version: 2.12.8, 2.14.3.

Fixed in: 2.12.8, 2.14.3

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-863

Relevant change history

  1. Published

    Preliminary advisory published.