CVE-2016-1000242: Denial of Service in mqtt

mqtt Updated 02 Oct 2025

Summary

01/09/2020
Yes i
High
7.5

CVE-2016-1000242: Denial of Service in mqtt. Affects mqtt versions < 1.0.0. Fixed in 1.0.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The mqtt package is an npm package that provides a client implementation of the MQTT protocol, allowing applications to connect to MQTT brokers and exchange messages. MQTT is a lightweight messaging protocol commonly used in IoT applications. The mqtt package is widely used in Node.js applications for MQTT communication.

Vulnerability Detail

Affected versions of mqtt are vulnerable to a denial of service (DoS) attack. When the package receives specially crafted MQTT packets, it causes the node process to crash, leading to a DoS condition. This vulnerability can be exploited by an attacker to disrupt the availability of the application.

How To Fix

Latest published version: 5.16.1 as of 23 Oct 2026

npm install mqtt@5.16.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.0.0

This is the first release that contains the fix.

npm install mqtt@1.0.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The mqtt package is vulnerable to a denial of service attack. To mitigate this vulnerability, it is crucial to update to version 1.0.0 or later. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for mqtt →

Share this vulnerability

FAQ

The vulnerability allows an attacker to send specially crafted MQTT packets, causing the node process to crash and leading to a denial of service condition. This can result in the unavailability of the application and disruption of its functionality.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the package-lock.json file.

No specific workaround is mentioned for this vulnerability. It is recommended to update to the latest version of the mqtt package to fix the issue.

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for mqtt.

How To Fix

Latest published version: 5.16.1 as of 23 Oct 2026

npm install mqtt@5.16.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.0.0

This is the first release that contains the fix.

npm install mqtt@1.0.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback