Skip to content

CVE-2026-71279 Zigbee2MQTT External JS Extension Path Traversal Leading to Remote Code Execution

HighCVSS 8.1 EPSS 0.57%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
Koenkk zigbee2mqtt <= 2.12.0 after 2.12.0 Fixed

Affected products

ProductAffected versionsFixed in
Koenkk zigbee2mqtt <= 2.12.0 No fix listed

References