CVE-2026-58208
Analyzed Analyzed - Analysis Complete

WebSocket to MQTT Routing Flaw in NATS Server

Vulnerability report for CVE-2026-58208, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-08

Last updated on: 2026-07-09

Assigner: GitHub, Inc.

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.12, a WebSocket listener could route requests for the MQTT-over-WebSocket path into MQTT handling even when MQTT was not configured, allowing an unauthenticated client with access to the WebSocket listener to reach uninitialized MQTT state and crash the server process. This issue is fixed in versions 2.14.3 and 2.12.12.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-08
Last Modified
2026-07-09
Generated
2026-07-12
AI Q&A
2026-07-09
EPSS Evaluated
2026-07-11
NVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
linuxfoundation nats-server From 2.12.0 (inc) to 2.12.12 (exc)
linuxfoundation nats-server From 2.14.0 (inc) to 2.14.3 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-248 An exception is thrown from a function, but it is not caught.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in the NATS Server, a high-performance messaging server. Before versions 2.14.3 and 2.12.12, the WebSocket listener could mistakenly route requests intended for MQTT-over-WebSocket to the MQTT handler even if MQTT was not configured. This allowed an unauthenticated client with access to the WebSocket listener to reach an uninitialized MQTT state, which could cause the server process to crash.

Impact Analysis

The impact of this vulnerability is a potential denial of service (DoS) condition. An unauthenticated attacker with access to the WebSocket listener can cause the NATS Server to crash by triggering the uninitialized MQTT state, leading to service disruption.

Mitigation Strategies

To mitigate this vulnerability, you should upgrade your NATS Server to version 2.14.3 or 2.12.12 or later, where the issue is fixed.

Compliance Impact

The vulnerability in NATS Server (CVE-2026-58208) causes a denial of service by crashing the server when an unauthenticated client accesses uninitialized MQTT state via a WebSocket listener. This impacts server availability but does not directly affect confidentiality or integrity of data.

Since the issue leads to server crashes and potential service disruption, it could indirectly affect compliance with standards and regulations that require high availability and reliability of systems, such as HIPAA's requirements for system availability or GDPR's requirements for data processing continuity.

However, there is no indication from the provided information that this vulnerability leads to unauthorized data access or data breaches, so direct compliance violations related to data confidentiality or privacy are not evident.

To maintain compliance, affected deployments should upgrade to the fixed versions (2.14.3 or 2.12.12) to prevent service disruption.

Detection Guidance

This vulnerability occurs when a WebSocket listener routes MQTT-over-WebSocket requests to MQTT handling even when MQTT is not configured, causing the server to crash. Detection involves identifying if your NATS Server version is vulnerable (versions prior to 2.14.3 and 2.12.12) and if your deployment enables WebSocket without MQTT.

To detect attempts to exploit this vulnerability on your network or system, you can monitor WebSocket upgrade requests targeting the MQTT-over-WebSocket path (typically "/mqtt") on your NATS Server. Unexpected or unauthorized WebSocket upgrade requests to the MQTT path when MQTT is disabled may indicate exploitation attempts.

While no specific detection commands are provided in the resources, you can use network monitoring tools like tcpdump or Wireshark to filter WebSocket upgrade requests to the "/mqtt" path. For example, using tcpdump to capture WebSocket upgrade HTTP requests containing "/mqtt" in the HTTP GET request URI on the NATS Server port (default 4222):

  • tcpdump -i <interface> -A -s 0 'tcp port 4222 and (((tcp[((tcp[12] & 0xf0) >> 2):4]) = 0x47455420))' | grep "/mqtt"

Additionally, reviewing NATS Server logs for crashes or panics related to WebSocket upgrade requests can help detect exploitation attempts.

The recommended mitigation is to upgrade to NATS Server versions 2.14.3 or 2.12.12 or later, as no workaround exists for WebSocket-only deployments without MQTT.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-58208. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart