Uncaught Exception Affecting github.com/nats-io/nats-server/v2/server package, versions <2.12.12>=2.14.0-RC.1 <2.14.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.6% (47th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMNATSIONATSSERVERV2SERVER-17900613
  • published9 Jul 2026
  • disclosed8 Jul 2026
  • creditUnknown

Introduced: 8 Jul 2026

CVE-2026-58208  (opens in a new tab)
CWE-248  (opens in a new tab)

How to fix?

Upgrade github.com/nats-io/nats-server/v2/server to version 2.12.12, 2.14.3 or higher.

Overview

github.com/nats-io/nats-server/v2/server is an A simple, secure and performant communications system for digital systems, services and devices.

Affected versions of this package are vulnerable to Uncaught Exception in the WebSocket listener routing, which dispatches requests for the MQTT-over-WebSocket path into MQTT handling even when MQTT is not configured. An attacker can crash the server and cause denial of service by connecting to the WebSocket listener and requesting the MQTT-over-WebSocket path, which reaches uninitialized MQTT state. Exploitation affects only deployments that enable the WebSocket listener while leaving MQTT disabled.

CVSS Base Scores

version 4.0
version 3.1