CVE-2026-71279 Zigbee2MQTT External JS Extension Path Traversal Leading to Remote Code Execution
Attackers can achieve remote code execution in Zigbee2MQTT by exploiting a path traversal vulnerability in the external JS extension handler.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-71279?
CVE-2026-71279 is a high-severity path traversal vulnerability in Koenkk zigbee2mqtt, published on 5 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-22
Which versions are affected by CVE-2026-71279?
How do I fix CVE-2026-71279?
No fix has been published for CVE-2026-71279 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-71279 being exploited?
There is no known exploitation of CVE-2026-71279 in the wild and no public exploit code.
Sources
Also known as GHSA-77vh-g47p-vh46.