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.
References
Configurations
No configuration.
History
No history.
Information
Published : 2026-08-05 13:24
Updated : 2026-08-26 17:13
NVD link : CVE-2026-71279
Mitre link : CVE-2026-71279
CVE.ORG link : CVE-2026-71279
JSON object : View
Products Affected
No product.
CWE
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
