CVE-2026-71279: Zigbee2MQTT - Remote Code Execution
- Cve: CVE-2026-71279
- Name: Zigbee2MQTT - Remote Code Execution
- Description: Zigbee2MQTT's ExternalJSExtension.getFilePath (lib/extension/externalJS.ts) joins a parameter received via an MQTT message (topic zigbee2mqtt/bridge/request/extension/save) into the extensions base path using path.join(basePath, name) with no sanitization. The extension handler only validates that the name ends in .js/.mjs/.cjs, writes the file, and then dynamically imports it via Node.js import, achieving remote code execution.
- Impact: Attackers with MQTT broker access can execute arbitrary code remotely and delete arbitrary files, potentially compromising the system.
- Remediation: Disable enable_external_js or update to a version that sanitizes file paths properly.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution, file_system_write
- Requirements: Attacker needs MQTT broker access and enable_external_js config enabled
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8
- Cvss vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00572
- Epss percentile: 0.48193
- Assignee: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
- Published at: 2026-08-05T13:24:52Z
- Age in days: 111
- Modified at: 2026-10-23T21:10:00Z
- References total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-71279
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, oss, projects total, projects, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/Koenkk/zigbee2mqtt | nvd | |
| https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/extension/externalJS.ts | nvd |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts