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

Published Jul 8, 2026
·
Updated

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

Other sources

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.

— MITRE

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

— OSV

Affected Software

12 affected componentsFixes available
NATS NATS Server<2.14.3, <2.12.8
linuxfoundation Nats-server<2.12.8
linuxfoundation Nats-server>=2.14.0<2.14.3
go/github.com/nats-io/nats-server/v2>=2.14.0-RC.1<2.14.3
2.14.3
go/github.com/nats-io/nats-server/v2<2.12.8
2.12.8
debian/nats-server<=2.9.10-1, <=2.10.27-1
2.14.3-1
bitnami/nats<2.12.8
2.12.8
bitnami/nats>=2.14.0<2.14.3
2.14.3
ubuntu/nats-server*
ubuntu/nats-server*
ubuntu/nats-server*
ubuntu/nats-server*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/nats-io/nats-server/v2 to a version that resolves this vulnerability.

    Fixed in 2.14.3
  2. Upgrade

    Upgrade go/github.com/nats-io/nats-server/v2 to a version that resolves this vulnerability.

    Fixed in 2.12.8
  3. Upgrade

    Upgrade debian/nats-server to a version that resolves this vulnerability.

    Fixed in 2.14.3-1
  4. Upgrade

    Upgrade bitnami/nats to a version that resolves this vulnerability.

    Fixed in 2.12.8
  5. Upgrade

    Upgrade bitnami/nats to a version that resolves this vulnerability.

    Fixed in 2.14.3
  6. Upgrade

    Upgrade github.com/nats-io/nats-server/v2 to a version that resolves this vulnerability.

    Fixed in 2.14.3
  7. Upgrade

    Upgrade github.com/nats-io/nats-server/v2 to a version that resolves this vulnerability.

    Fixed in 2.12.8
  8. Compensating control

    Where possible, avoid granting publish paths from less-trusted leaf nodes into subjects for which trace-only behavior would affect delivery guarantees.

Event History

Jul 8, 2026
CVE Published
via MITRE·07:56 PM
Data Sourced
via MITRE·07:56 PM
DescriptionWeakness
Data Sourced
via OSV·07:56 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeakness
Jul 13, 2026
Data Sourced
via NVD·03:28 PM
RemedyAffected Software
Updated
via NVD·03:28 PM
Severity
Jul 14, 2026
Advisory Published
via OSV·03:47 PM
Nov 20, 2026
Advisory Published
via GitHub·11:31 PM
Data Sourced
via GitHub·11:31 PM
DescriptionSeverityWeaknessAffected Software
Nov 21, 2026
Exploit Published
via GitHub·05:52 AM
Nov 24, 2026
Data Sourced
via OSV·02:55 PM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-58254?

CVE-2026-58254 has a medium severity rating of 5.3.

2

How do I fix CVE-2026-58254?

To fix CVE-2026-58254, upgrade to NATS Server version 2.14.3 or 2.12.8 and ensure the Leaf node connection checks are applied correctly.

3

What components are affected by CVE-2026-58254?

CVE-2026-58254 affects NATS Server versions prior to 2.14.3 and 2.12.8.

4

What type of vulnerability is CVE-2026-58254?

CVE-2026-58254 is a permission check bypass vulnerability related to leaf node connections.

5

Are messages sent through leaf node connections impacted by CVE-2026-58254?

Yes, messages arriving through leaf node connections can bypass Nats-Trace-Dest permission checks due to CVE-2026-58254.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203