CVE-2026-58254
JSON

5.3medium

NATS Server: Incomplete fix for CVE-2026-33249: Leaf node connections bypass Nats-Trace-Dest permission check

Severity
5.3medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-p3j5-5hrq-p75hBIT-NATS-2026-58254GO-2026-7025

Description

NATS Server is a high-performance server for NATS.io, the cloud and edge native messaging system. Prior to 2.14.3 and 2.12.8, message trace destination checks were applied to ordinary client connections but not consistently to messages arriving through leafnode connections, allowing a leafnode operator to send trace events to subjects that would not otherwise be permitted and to use trace-only behavior to prevent normal delivery or storage of affected messages. This issue is fixed in versions 2.14.3 and 2.12.8.

Affected

Product or packageVersionsReported by
nats-io nats-server< 2.12.8, >= 2.14.0-RC.1, < 2.14.3CVE List
github.com/nats-io/nats-server/v2 (Go)before 2.12.8, from 2.14.0-RC.1 before 2.14.3GitHub Advisory Database, Go Vulnerability Database
linuxfoundation nats-serverbefore 2.12.8, from 2.14.0 before 2.14.3NVD
nats (Bitnami)before 2.12.8, from 2.14.0 before 2.14.3Bitnami Vulnerability Database

All scores

GitHub_M5.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-863

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

NATS Server is a high-performance server for NATS.io, the cloud and edge native messaging system. Prior to 2.14.3 and 2.12.8, message trace destination checks were applied to ordinary client connections but not consistently to messages arriving through leafnode connections, allowing a leafnode operator to send trace events to subjects that would not otherwise be permitted and to use trace-only behavior to prevent normal delivery or storage of affected messages. This issue is fixed in versions 2.14.3 and 2.12.8.

GitHub Advisory Database
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
Go Vulnerability Database

nats-server Leaf node connections bypass Nats-Trace-Dest permission check in github.com/nats-io/nats-server/v2

NVD (es)

NATS Server es un servidor de alto rendimiento para NATS.io, el sistema de mensajería nativo de la nube y del borde. Antes de las versiones 2.14.3 y 2.12.8, las comprobaciones de destino de rastreo de mensajes se aplicaban a las conexiones de clientes ordinarias, pero no de forma consistente a los mensajes que llegaban a través de conexiones de leafnode, lo que permitía a un operador de leafnode enviar eventos de rastreo a temas que de otro modo no estarían permitidos y utilizar un comportamiento de solo rastreo para evitar la entrega o el almacenamiento normal de los mensajes afectados. Este problema está solucionado en las versiones 2.14.3 y 2.12.8.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-58254 changed 2026-07-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-p3j5-5hrq-p75h changed 2026-11-23CC-BY-4.0
Go Vulnerability DatabaseGO-2026-7025 changed 2026-11-23CC-BY-4.0
NVDCVE-2026-58254 changed 2026-10-25Public domain
Bitnami Vulnerability DatabaseBIT-NATS-2026-58254 changed 2026-11-23Apache-2.0