CVE-2018-11615: Vulnerability in npm mosca

mosca Updated 02 Oct 2025

Summary

31/08/2018
Yes i
High
7.5

CVE-2018-11615: Mosca REDoS Vulnerability. Affects mosca versions < 2.8.2. Fixed in 2.8.2. 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

npm mosca is an open-source MQTT broker that allows devices to communicate with each other using the MQTT protocol. It provides a lightweight and efficient messaging system for IoT applications. However, a high severity vulnerability has been discovered in version 2.8.1 of mosca. This vulnerability allows remote attackers to deny service on vulnerable installations. Authentication is not required to exploit this vulnerability. The specific flaw exists within the processing of topics, where a crafted regular expression can cause the broker to crash. Exploiting this vulnerability can lead to a denial of access to the target system.

Vulnerability Detail

The vulnerability in mosca arises from a flaw in the processing of topics. By sending a specially crafted regular expression, an attacker can cause the MQTT broker to crash. This vulnerability can be exploited remotely without authentication, making it a serious security concern. The impact of this vulnerability is a denial of service, preventing legitimate users from accessing the system. It is important to note that this vulnerability affects mosca version 2.8.1 and prior.

How To Fix

Latest published version: 2.8.3 as of 22 Oct 2026

npm install mosca@2.8.3

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

If you need the minimum change

2.8.2

This is the first release that contains the fix.

npm install mosca@2.8.2

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

Workaround

There is no known workaround for this vulnerability. It is essential to update to the latest version of mosca to mitigate the risk.

Conclusion

In conclusion, the vulnerability in npm mosca version 2.8.1 allows remote attackers to deny service by exploiting a flaw in the processing of topics. To mitigate this risk, it is crucial to update to the latest version of mosca (2.8.2 or later). This will ensure that the vulnerability is patched and the system is secure. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for mosca →

Share this vulnerability

FAQ

Mosca is an open-source MQTT broker that facilitates communication between devices using the MQTT protocol.

The vulnerability allows remote attackers to deny service on vulnerable installations, leading to a denial of access to the target system.

No, authentication is not required to exploit this vulnerability.

To fix this vulnerability, it is recommended to upgrade to the latest version of mosca (2.8.2 or later).

There are no known workarounds for this vulnerability. Updating to the latest version is the recommended solution.

How To Fix

Latest published version: 2.8.3 as of 22 Oct 2026

npm install mosca@2.8.3

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

If you need the minimum change

2.8.2

This is the first release that contains the fix.

npm install mosca@2.8.2

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