---
title: "mqtt 5.16.1: release notes, upgrades and advisories"
description: "mqtt 5.16.1: release notes, breaking changes by major version and 2 known advisories with their fix."
url: https://inlinr.com/packages/mqtt
lang: en
---

[Packages](https://inlinr.com/packages)

# mqtt

5.16.1 · 14 Oct 2026 MIT 4.6M / week [Repository](https://github.com/mqttjs/MQTT.js) [Homepage](https://github.com/mqttjs/MQTT.js#readme) [npm](https://www.npmjs.com/package/mqtt) [Atom feed](https://inlinr.com/packages/feed/mqtt)

Your version 

## Where each line stands

[Plan an upgrade](https://inlinr.com/packages/mqtt/upgrade)

LineNewestSecurity

- 5.x 5.16.1 No known advisory Latest line
- 4.x 4.3.8 No known advisory [To 5.16.1](https://inlinr.com/packages/mqtt/upgrade/4.3.8-5.16.1)
- 3.x 3.0.1 No known advisory [To 5.16.1](https://inlinr.com/packages/mqtt/upgrade/3.0.1-5.16.1)
- 2.x and older 2.18.9 3 open advisories, worst high  · last release Aug 2021, no longer updated [To 5.16.1](https://inlinr.com/packages/mqtt/upgrade/2.18.9-5.16.1)

## Latest releases

[All 210 releases](https://inlinr.com/packages/mqtt/releases)

1. ### [5.16.1](https://inlinr.com/packages/mqtt/releases/5.16.1 "Open this release") [](https://github.com/mqttjs/MQTT.js/releases/tag/v5.16.1 "Read this release where it was published")  
14 Oct 2026

  - Reconnect instead of ending a client whose stream is already destroyed
  - Schedule browser process.nextTick with queueMicrotask ([#2056](https://github.com/mqttjs/MQTT.js/issues/2056 "https://github.com/mqttjs/MQTT.js/issues/2056")) ([648b79c](https://github.com/mqttjs/MQTT.js/commit/648b79ccad79135f82198677c381a0c0e4fdd9bf "https://github.com/mqttjs/MQTT.js/commit/648b79ccad79135f82198677c381a0c0e4fdd9bf")), closes [#2074](https://github.com/mqttjs/MQTT.js/issues/2074 "https://github.com/mqttjs/MQTT.js/issues/2074")
2. ### [5.16.0](https://inlinr.com/packages/mqtt/releases/5.16.0 "Open this release") [](https://github.com/mqttjs/MQTT.js/releases/tag/v5.16.0 "Read this release where it was published")  
16 Sep 2026

  - Security

**`options` is no longer mutated by a CONNACK.** Code that read negotiated values back off `options.properties.maximumPacketSize` or `options.keepalive` must use the new `client.serverProperties` / `client.keepalive` getters instead.
  - Security

**A refused CONNACK now always closes the socket.** With `reconnectOnConnackError: false` (the default) the client previously sat on an open connection and kept delivering `message` events after telling the application the connection was refused.
  - Security

**Protocol violations now drop the connection**: a SUBACK reason-code count mismatch, an invalid Topic Alias, an unsolicited or out-of-spec AUTH, and a broker exceeding `receiveMaximum` on inbound QoS 2 (reason code `0x93`). Reconnect stays armed in all cases.
3. ### [5.15.2](https://inlinr.com/packages/mqtt/releases/5.15.2 "Open this release") [](https://github.com/mqttjs/MQTT.js/releases/tag/v5.15.2 "Read this release where it was published")  
6 Jul 2026

  - **connect/tls:** don't overwrite an explicit servername (SNI)
  - Support relative WebSocket URLs ([#2049](https://github.com/mqttjs/MQTT.js/issues/2049 "https://github.com/mqttjs/MQTT.js/issues/2049")) ([c4be563](https://github.com/mqttjs/MQTT.js/commit/c4be5633594b5b839862440aa78125f22021f8e6 "https://github.com/mqttjs/MQTT.js/commit/c4be5633594b5b839862440aa78125f22021f8e6")), closes [#2035](https://github.com/mqttjs/MQTT.js/issues/2035 "https://github.com/mqttjs/MQTT.js/issues/2035")

Dependency tracking

## Know when your own dependencies move

mqtt published 5 releases in the last 12 months. inlinr folds the routine ones into a line and keeps the few that need you.

- Advisories reach you  
An email when a critical or high advisory affects a project, before the next install.
- Upgrades checked first  
Peer ranges, Node, ESM-only and types changes read before you bump.
- Only what matters  
Majors and breaking notes stay; patches and sibling bumps fold into one line.

[How dependency tracking works](https://inlinr.com/dependencies)

## Security

[Details](https://inlinr.com/packages/mqtt/security)

- [Denial of Service in mqtt](https://inlinr.com/advisories/GHSA-hg78-c92r-hvwr) High ·
- [Denial of Service in mqtt](https://inlinr.com/advisories/GHSA-h9mj-fghc-664w) Moderate · fixed in 2.15.0

## Health of 5.16.1

[Details](https://inlinr.com/packages/mqtt/security#signals)

- **Provenance**: Present
- **Publisher**: GitHub Actions
- **Maintainers**: 4
- **Scorecard**: 4.2 / 10
- **Size**: 1.9 MB

## Weekly downloads

Registry facts last checked 18 Nov 2026\. Releases and advisories last read 24 Nov 2026.

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
