npm mqtt 5.17.0
Release 5.17.0

2 hours ago

5.17.0 (2026-11-30)

Security

Upgrade to 5.17.0. The 4.x line (4.3.8) has both issues and is not patched.

  • GHSA-vp96-jq7h-5x6g (medium). In a browser, a Web Worker, React Native or with forceNativeWebSocket, a tls:// or ssl:// broker URL connected over ws://, with no TLS. Someone on the network path could read the username, the password and every message. No authentication needed.
    • Behaviour change: tls:// and ssl:// now connect over wss:// in these builds. On Node.js, wxs:// and alis:// connect over mqtts://. A secure protocol with no secure transport now throws No secure transport available for protocol "<protocol>". Protocols are lowercased, so MQTTS:// works like mqtts://.
  • GHSA-c7vh-4qgc-w67h (low). After a malformed packet the client kept the connection open, and could read the bytes of a message payload as packets.
    • Behaviour change: a malformed packet now closes the connection (MQTT 5 sends DISCONNECT 0x81 first) and the client reconnects. The error event is an ErrorWithReasonCode with code 0x81.

Both reported by @mark1russell7.

Bug Fixes

Performance Improvements

Don't miss a new mqtt release

NewReleases is sending notifications on new releases.