All vulnerabilities

Go

CVE-2026-58254

nats-server Leaf node connections bypass Nats-Trace-Dest permission check

Severity
Medium 6.5
Published
20 Nov 2026
Last changed
20 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
2.12.8, 2.14.3
Exploit chance
0.2% in the next 30 daysHigher than 12% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Incorrect authorization (CWE-863)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Also known as
BIT-nats-2026-58254, GHSA-p3j5-5hrq-p75h
Sources
OSV.dev and GitHub

Description

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.

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.

From the GitHub Advisory Database, CC BY 4.0.

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.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
github.com/nats-io/nats-server/v2Go · osv:Go:github.com/nats-io/nats-server/v2
  • Every version before 2.12.8
  • From 2.14.0-RC.1 before 2.14.3

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

References