{"vuln_id":"CVE-2026-63341","aliases":["GHSA-xxqp-5qx8-gj5q"],"description":"Aedes has Uncaught Exception and Uncontrolled Resource Consumption","published_at":"2026-11-20T23:32:35Z","modified_at":"2026-11-20T23:45:04.112514Z","first_seen_at":"2026-11-21T19:15:19.254725Z","severity":"high","severity_source":"ghsa","cvss_score":7.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","cwe":["CWE-248","CWE-400"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00548,"epss_percentile":0.46779,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-63341"},"matched_alias":null,"items":[{"id":10802,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-xxqp-5qx8-gj5q: Aedes has Uncaught Exception and Uncontrolled Resource Consumption","summary":"Aedes has Uncaught Exception and Uncontrolled Resource Consumption\n\n### 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 P\n\nAffected: npm:aedes\n\nFixed in: 1.1.1\n\nReferences:\nhttps://github.com/moscajs/aedes/security/advisories/GHSA-xxqp-5qx8-gj5q\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-63341\nhttps://github.com/moscajs/aedes/commit/b9024faa4cb416c4c6980760b4d7f55336315f2d\nhttps://github.com/moscajs/aedes\nhttps://github.com/moscajs/aedes/releases/tag/v1.1.1","url":"https://osv.dev/vulnerability/GHSA-xxqp-5qx8-gj5q","published_at":"2026-11-20T23:32:35Z","updated_at":"2026-11-20T23:45:04.112514Z","fetched_at":"2026-11-21T19:15:55.946186Z","severity":"high","cvss_score":7.5,"epss":0.00548,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"aedes","vuln_id":"CVE-2026-63341","vuln_ids":["CVE-2026-63341","GHSA-XXQP-5QX8-GJ5Q"],"tags":["osv","npm","fix-available"],"cluster_id":2002,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10802","html":"https://vulnwatch.ve1ve2.com/item/10802"}},{"id":2292,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-xxqp-5qx8-gj5q / CVE-2026-63341: Aedes has Uncaught Exception and Uncontrolled Resource Consumption","summary":"Aedes has Uncaught Exception and Uncontrolled Resource Consumption\n\n### 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 P\n\nAffected packages: npm:aedes\nPatched: aedes 1.1.1","url":"https://github.com/advisories/GHSA-xxqp-5qx8-gj5q","published_at":"2026-11-20T23:32:35Z","updated_at":"2026-11-20T23:32:36Z","fetched_at":"2026-11-21T19:15:18.416726Z","severity":"high","cvss_score":7.5,"epss":0.00548,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"aedes","vuln_id":"CVE-2026-63341","vuln_ids":["CVE-2026-63341","GHSA-XXQP-5QX8-GJ5Q"],"tags":["ghsa","npm","CWE-248","CWE-400"],"cluster_id":2002,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2292","html":"https://vulnwatch.ve1ve2.com/item/2292"}}]}