CVE-2020-13410: Improper exception handling in Aedes

aedes Updated 02 Oct 2025

Summary

06/05/2021
Yes i
High
7.5

CVE-2020-13410: Improper exception handling in Aedes. Affects aedes versions < 0.42.1. Fixed in 0.42.1. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Aedes is an npm package that provides a MQTT broker implementation. It allows devices to communicate with each other using the MQTT protocol. Aedes version 0.42.0 is affected by a vulnerability that could lead to improper exception handling in the lib/write.js file. This vulnerability can be exploited when writing an invalid packet to a stream.

Vulnerability Detail

The vulnerability in Aedes version 0.42.0 arises from the improper handling of exceptions during the writing of an invalid packet to a stream. This can result in unexpected behavior or crashes in the application using Aedes. An attacker could potentially exploit this vulnerability to disrupt the MQTT communication or execute arbitrary code on the affected system.

How To Fix

Latest published version: 1.2.0 as of 23 Oct 2026

npm install aedes@1.2.0

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

If you need the minimum change

0.42.1

This is the first release that contains the fix.

npm install aedes@0.42.1

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 upgrade to the fixed version of Aedes to mitigate the risk.

Conclusion

In conclusion, the vulnerability in Aedes version 0.42.0 can result in improper exception handling when writing an invalid packet to a stream. It is recommended to upgrade to Aedes version 0.42.1 or later to fix this vulnerability. No workaround is available, and it is crucial to take immediate action to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for aedes →

Share this vulnerability

FAQ

Aedes is an npm package that provides a MQTT broker implementation, allowing devices to communicate using the MQTT protocol.

The vulnerability can lead to unexpected behavior or crashes in the application using Aedes. An attacker could potentially disrupt MQTT communication or execute arbitrary code on the affected system.

To fix this vulnerability, upgrade to Aedes version 0.42.1 or later by updating your package.json file and running the package manager to install the updated package.

No, there is no known workaround for this vulnerability. It is crucial to upgrade to the fixed version of Aedes.

Related vulnerabilities

Recent vulnerabilities recorded for aedes.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 1.2.0 as of 23 Oct 2026

npm install aedes@1.2.0

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

If you need the minimum change

0.42.1

This is the first release that contains the fix.

npm install aedes@0.42.1

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