{"id":"CVE-2026-71279","state":"PUBLISHED","title":"Zigbee2MQTT External JS Extension Path Traversal Leading to 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.","publishedAt":"2026-08-05T12:26:25.594Z","updatedAt":"2026-08-10T11:47:00.480Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"TuranSec"},"assigner":"TuranSec","products":["Koenkk zigbee2mqtt"],"affected":[{"vendor":"Koenkk","product":"zigbee2mqtt","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.12.0","versionType":"semver"}],"programFiles":["lib/extension/externalJS.ts"]}],"references":["https://github.com/Koenkk/zigbee2mqtt","https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/extension/externalJS.ts"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/71xxx/CVE-2026-71279.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-71279","state":"PUBLISHED","datePublished":"2026-08-05T12:26:25.594Z","dateUpdated":"2026-08-10T11:47:00.480Z","assignerShortName":"TuranSec","assignerOrgId":"309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c","dateReserved":"2026-08-05T12:23:34.967Z"},"containers":{"cna":{"title":"Zigbee2MQTT External JS Extension Path Traversal Leading to Remote Code Execution","descriptions":[{"lang":"en","value":"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":[{"vendor":"Koenkk","product":"zigbee2mqtt","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.12.0","versionType":"semver"}],"programFiles":["lib/extension/externalJS.ts"]}],"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"]}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH","attackVector":"ADJACENT_NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22","type":"CWE"}]}],"providerMetadata":{"shortName":"TuranSec","orgId":"309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c","dateUpdated":"2026-08-10T11:47:00.480Z"},"credits":[{"lang":"en","value":"Alibek Baxtiyorov","type":"finder"}],"source":{"discovery":"EXTERNAL"},"datePublic":"2026-08-05T12:26:25.594Z"},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-05T15:55:04.507481Z","id":"CVE-2026-71279","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-05T15:55:11.665Z"}}]}}}