Skip to content
OpenAdvisories
High · 8.1 CVE-2026-71279 EUVD-2026-53364GHSA-77vh-g47p-vh46

Zigbee2MQTT External JS Extension Path Traversal Leading to Remote Code Execution

Published Aug 5, 2026 · Updated Aug 10, 2026 · Assigned by TuranSec

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.

Affected products

VendorProductAffectedFixed
Koenkk zigbee2mqtt ≤ 2.12.0 —

References