{"id":"CVE-2026-71279","published":"2026-08-05T12:26:25Z","modified":"2026-08-10T11:47:00Z","title":"Zigbee2MQTT External JS Extension Path Traversal Leading to Remote Code Execution","vendor":"Koenkk","product":"zigbee2mqtt","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00572,"percentile":0.482,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/Koenkk/zigbee2mqtt","tags":["third-party-advisory"]},{"url":"https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/extension/externalJS.ts","tags":["third-party-advisory"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":9.64},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"koenkk","affectedVersions":[{"vendor":"Koenkk","product":"zigbee2mqtt","versions":["<= 2.12.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-08-05T15:55:04.507481Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-53364","exploited":false,"provenance":"source"}}