NATS Server flaw can crash WebSocket-only JetStream servers before MQTT is enabled
- NATS Server
- JetStream
- WebSocket
- MQTT
- crash

Flaw affects WebSocket-only JetStream servers without MQTT
Patches available in versions 2.12.12 and 2.14.3
A vulnerability in NATS Server’s MQTT-over-WebSocket path can crash WebSocket-only JetStream servers before MQTT is enabled. The affected configurations use WebSocket without MQTT over WebSocket.
The vulnerability affects NATS Server versions earlier than v2.12.12 in the 2.12 series and versions from v2.14.0-RC.1 through v2.14.2. Deployments that do not use WebSocket, or that use both WebSocket and MQTT, are not affected.
NATS Server versions v2.12.12 and v2.14.3 fix the issue. The advisory reports no known workaround for deployments that require WebSocket without MQTT over WebSocket.
Key terms explained
- WebSocket
WebSocket is a communication protocol that enables two-way data exchange between a client and a server over a single TCP connection. It is like a dedicated two-way telephone line between two people that stays open for continuous conversation.
- JetStream
JetStream is a persistence layer for NATS that ensures messages are stored and can be delivered even after a system restart. It acts like a post office that keeps a record of your mail and delivers it later if you were not home to receive it.




