MQTTX CVE-2025-62413
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain publish access to subscribed broker
-
DeliveryPublish payload with embedded HTML/JS
-
ExploitVictim opens message in MQTTX viewer
-
ExecutionScript renders and executes in app UI
-
ImpactHarvest MQTT credentials or trigger actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires that the MQTTX client (v1.12.0) renders an attacker-controlled MQTT message payload containing HTML/JavaScript in its message viewer, and that a user actually opens/views that message (CVSS UI:R). The practical prerequisite named in the description is that MQTTX is connected to an untrusted or multi-tenant broker where the attacker can publish or influence message content; in a fully trusted single-tenant broker the attacker lacks an injection channel. Limiting factors: user interaction is mandatory, impact is confined to the application UI context (low confidentiality/integrity, no availability impact), and the issue is absent before 1.12.0 and fixed in 1.12.1. |
| Impact | This is a moderate-severity stored/reflected XSS (CWE-79) with a self-consistent set of signals rather than a top-tier priority. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, base 6.1) describes a network-reachable but user-interaction-dependent flaw with only low confidentiality and integrity impact and a scope change - consistent with script injection in an Electron-style desktop UI. EPSS is low (0.33%, 24th percentile), there is no CISA KEV listing, and no public exploit code is referenced, so the real-world exploitation signals all point the same direction: no public exploit identified at time of analysis, and no evidence of active exploitation. The GitHub source evidence confirms the fix is genuine (new xmlUtils escapeXmlForHtml/isXML plus TreeNodeInfo.vue payload-rendering changes in commit 2963f78), which raises confidence that the root cause is unescaped payload rendering. The key limiting factor the CVSS numbers understate is the deployment precondition emphasized in the description - meaningful risk largely exists only when MQTTX subscribes to untrusted or multi-tenant brokers where an attacker can inject message content. Net: a credible but low-urgency issue; patch in routine cycles rather than emergency. |
| Exploit ScenarioDerived | An attacker who can publish to an MQTT broker that a victim's MQTTX client (v1.12.0) subscribes to sends a message whose payload contains HTML/JavaScript. When the victim opens or views that message in the MQTTX message viewer, the script executes in the application UI context and can attempt to read stored MQTT connection credentials or trigger unintended in-app actions. Exploitation requires user interaction (viewing the crafted message) per CVSS UI:R; no public exploit code is referenced. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 09, 2026
Cross-site scripting in MQTTX 1.12.0 lets an attacker who can publish MQTT messages to a broker the client is connected to inject HTML or JavaScript that executes inside the MQTTX message-viewer UI when a user opens the affected message. Exploitation requires that the user actually view the malicious payload (CVSS UI:R), and the practical injection channel is a broker in an untrusted or multi-tenant environment; impact is confined to the application UI context with low confidentiality and integrity effects and no availability impact. The issue was introduced in 1.12.0 and is fixed in 1.12.1; there is no public exploit identified at time of analysis, EPSS is low (0.33%, 24th percentile), and the vulnerability is not in CISA KEV.
RemediationAI
Upgrade MQTTX to 1.12.1, which is the vendor-released patched version and contains the XML payload entity-escaping fix (isXML/escapeXmlForHtml in src/utils/xmlUtils.ts wired into the message viewer); the fix is confirmed by the upstream commit 2963f78a4b3227cdb93597f546a75b75dee1059f and the advisory at https://github.com/emqx/MQTTX/security/advisories/GHSA-29gf-9r9v-j4m3. Until upgrading, treat the message viewer as untrusted: avoid viewing or expanding messages from brokers, topics, or publishers you do not control, since the trigger is simply opening the malicious payload (UI:R) and there is no separate toggle to disable payload rendering-the trade-off being that this degrades the tool's core diagnostic usefulness. Where MQTTX 1.12.0 must remain in use, enforce broker-side access control so that unauthorized or untrusted tenants cannot publish to topics the client subscribes to (ACLs restricting publish rights per topic and per client identity), and isolate the client so that any script execution in the UI context cannot reach production credentials-run it in a segregated environment or throwaway credential set, accepting reduced operational convenience. Note that the injected script runs only in the application UI context with low confidentiality/integrity impact per the assessed vector, so the residual risk after compensating controls is limited but non-zero.
Affected ProductsAI
MQTTX version 1.12.0 is affected; the vulnerability was introduced in that release and does not exist in earlier versions. It is fixed in MQTTX 1.12.1. No CPE identifiers were supplied in the source data, so product scoping rests on the MQTTX release version rather than a machine-readable CPE binding. The two authoritative sources are the upstream GitHub Security Advisory GHSA-29gf-9r9v-j4m3 (https://github.com/emqx/MQTTX/security/advisories/GHSA-29gf-9r9v-j4m3) and the fixing commit https://github.com/emqx/MQTTX/commit/2963f78a4b3227cdb93597f546a75b75dee1059f, which shows the affected rendering code in src/widgets/TreeNodeInfo.vue and the new escaping utility in src/utils/xmlUtils.ts alongside unit tests in tests/unit/utils/xmlUtils.spec.ts. Any deployment of MQTTX 1.12.0 that connects to brokers where publishers are not fully trusted-particularly multi-tenant or shared brokers-falls within the affected population.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MQTTX is an MQTT 5.0 desktop testing client that renders MQTT message payloads in a viewer component. The flaw is a CWE-79 improper-neutralization issue in the payload rendering path: the version 1.12.0 message viewer (src/widgets/TreeNodeInfo.vue) rendered payload content in a way that could be interpreted as HTML rather than inert text, so a payload containing HTML or script markup could execute in the renderer/UI context. The upstream fix (commit 2963f78a4b3227cdb93597f546a75b75dee1059f) adds src/utils/xmlUtils.ts, which introduces XML detection (isXML) and an escapeXmlForHtml routine that encodes &, <, >, " and ' as HTML entities, and wires that escaping into the XML branch of the payload formatter in TreeNodeInfo.vue. In other words, the 1.12.0 change that added XML payload handling failed to escape entity-breaking characters before display, and 1.12.1 corrects this by entity-encoding XML payloads before they reach the HTML renderer. Because it is a desktop/Electron-style client rendering user-influenced broker data, injected script runs in the application UI context, which the advisory notes could be leveraged to attempt access to MQTT connection credentials or trigger unintended UI actions.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attacker needs no privileges on MQTTX itself (PR:N) but the victim must view the crafted message (UI:R); XSS escaping the viewer into the app context yields S:C with limited C/I and no availability impact.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
MQTTX is an MQTT 5.0 desktop client and MQTT testing tool. A Cross-Site Scripting (XSS) vulnerability was introduced in MQTTX v1.12.0 due to improper handling of MQTT message payload rendering. Malicious payloads containing HTML or JavaScript could be rendered directly in the MQTTX message viewer. If exploited, this could allow attackers to execute arbitrary scripts in the context of the application UI - for example, attempting to access MQTT connection credentials or trigger unintended actions through script injection. This vulnerability is especially relevant when MQTTX is used with brokers in untrusted or multi-tenant environments, where message content cannot be fully controlled. This vulnerability is fixed in 1.12.1.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
NVD
CVE.org
EPSS
GitHub
Exploit-DB