Dev.to Security 🔐 Cybersecurity 👁 0 📖 2 min read

CVE-2026-63341: CVE-2026-63341: Unauthenticated Denial of Service via Unbounded Topic Depth in Aedes MQTT Broker

CVE-2026-63341: Unauthenticated Denial of Service via Unbounded Topic Depth in Aedes MQTT Broker Vulnerability ID: CVE-2026-63341 CVSS Score: 7.5 Published: 2026-11-20 CVE-2026-63341 is a high-severity Denial of Ser

CVE-2026-63341: Unauthenticated Denial of Service via Unbounded Topic Depth in Aedes MQTT Broker

Vulnerability ID: CVE-2026-63341
CVSS Score: 7.5
Published: 2026-11-20

CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.

TL;DR

An unauthenticated remote attacker can crash an Aedes MQTT broker (versions < 1.1.1) with a single MQTT packet by supplying a topic string with more than 100 forward-slash-delimited levels, triggering an uncaught synchronous exception in the underlying qlobber routing dependency.

⚠️ Exploit Status: POC

Technical Details

  • CVE ID: CVE-2026-63341 (GHSA-xxqp-5qx8-gj5q)
  • Affected Component: moscajs/aedes (< 1.1.1)
  • Weakness Class: CWE-248 (Uncaught Exception) / CWE-400 (Uncontrolled Resource Consumption)
  • Attack Vector: Network (MQTT over TCP/TLS/WebSockets)
  • CVSS v3.1 Score: 7.5 High (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)
  • EPSS Score: 0.36% (31.08th Percentile)
  • Impact: Unauthenticated Remote Denial of Service (Node.js Process Termination)
  • Exploit & KEV Status: Public PoC Available / Not Listed in CISA KEV

Affected Systems

  • moscajs/aedes (Node.js MQTT Broker) versions < 1.1.1
  • aedes: < 1.1.1 (Fixed in: 1.1.1)

Code Analysis

Commit: b9024fa

Add topicLevelCount validation and maxTopicLevels configuration to prevent uncaught qlobber exceptions on deep topics.

Exploit Details

Mitigation Strategies

  • Upgrade Aedes to version 1.1.1 or later to enforce built-in topic level boundary checks across all MQTT packet handlers and internal broker methods.
  • Configure the maxTopicLevels broker option in Aedes >= 1.1.1 to restrict topic hierarchy depth to the minimum required by your application architecture (e.g., 10 to 30 levels).
  • Enforce strict client authentication and topic authorization hooks (authenticate, authorizePublish, authorizeSubscribe) so unauthenticated clients cannot submit arbitrary routing requests.
  • Ensure the Node.js process is managed by a process supervisor (systemd, PM2, or container orchestration with restart policies) and monitor for unexpected process restarts.

Remediation Steps:

  1. Audit package.json and package-lock.json files across all Node.js services to identify dependencies on aedes versions prior to 1.1.1.
  2. Run 'npm install aedes@>=1.1.1' to update the broker package to the patched release.
  3. If immediate patching is blocked, implement custom topic depth checks (rejecting topics with >= 100 '/' characters) inside broker.authenticate (checking client.will.topic), broker.authorizePublish, and broker.authorizeSubscribe.
  4. Verify the remediation by running automated test cases that attempt to subscribe and publish to a 101-level topic and confirming the client receives a connection error while the broker process remains stable.

References

Read the full report for CVE-2026-63341 on our website for more details including interactive diagrams and full exploit analysis.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.