Skip to content
Heist/ feed
Back to feed
High

Zigbee2MQTT External JS Extension Path Traversal Leading to Remote Code Execution

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-71279
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 01:00 UTC · Revision 1

Source evidence

Zigbee2MQTT External JS Extension Path Traversal Leading to Remote Code Execution

core-osv · Original source

Published 5 Aug 2026, 12:26 UTC

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.

osv:CVE-2026-71279
Complete source record
{
  "id": "a3ad2e8965c9faa4a7f9a944869d68fc91d609236c0eba6b91084d3a75009eae",
  "url": "https://osv.dev/vulnerability/CVE-2026-71279",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Zigbee2MQTT External JS Extension Path Traversal Leading to Remote Code Execution",
    "summary": "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.",
    "evidence": "osv:CVE-2026-71279",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-71279",
      "aliases": [
        "CVE-2026-71279"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/koenkk/zigbee2mqtt",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "fd8bafc81d03aa401f41eba5803a3dd1dd8092cd"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.12.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.12.0",
            "2.11.0",
            "2.10.1",
            "2.10.0",
            "2.9.2",
            "2.9.1",
            "2.9.0",
            "2.8.0",
            "2.7.2",
            "2.7.1",
            "2.7.0",
            "2.6.3",
            "2.6.2",
            "2.6.1",
            "2.6.0",
            "2.5.1",
            "2.5.0",
            "2.4.0",
            "2.3.0",
            "2.2.1",
            "2.2.0",
            "2.1.3",
            "2.1.2",
            "2.1.1",
            "2.1.0",
            "2.0.0",
            "1.42.0",
            "1.41.0",
            "1.40.2",
            "1.40.1",
            "1.40.0",
            "1.39.1",
            "1.39.0",
            "1.38.0",
            "1.37.1",
            "1.37.0",
            "1.36.1",
            "1.36.0",
            "1.35.3",
            "1.35.2",
            "1.35.1",
            "1.35.0",
            "1.34.0",
            "1.33.2",
            "1.33.1",
            "1.33.0",
            "1.32.2",
            "1.32.0",
            "1.31.0",
            "1.30.4",
            "1.30.3",
            "1.30.2",
            "1.30.0",
            "1.29.2",
            "1.29.1",
            "1.29.0",
            "1.28.4",
            "1.28.3",
            "1.28.1",
            "1.28.0",
            "1.27.2",
            "1.27.1",
            "1.27.0",
            "1.26.0",
            "1.25.2",
            "1.25.1",
            "1.25.0",
            "1.24.0",
            "1.23.0",
            "1.22.2",
            "1.22.1",
            "1.22.0",
            "1.21.2",
            "1.21.1",
            "1.21.0",
            "1.20.0",
            "1.19.0",
            "1.18.3",
            "1.18.2",
            "1.18.1",
            "1.18.0",
            "1.17.1",
            "1.17.0",
            "1.16.2",
            "1.16.0",
            "1.15.0",
            "1.14.4",
            "1.14.2",
            "1.14.1",
            "1.14.0",
            "1.13.1",
            "1.13.0",
            "1.12.1",
            "1.12.0",
            "1.11.0",
            "1.10.0",
            "1.9.0",
            "1.8.0",
            "1.7.1",
            "1.7.0",
            "1.6.0",
            "1.5.1",
            "1.5.0",
            "1.4.0",
            "1.3.0",
            "1.2.0",
            "1.1.0",
            "1.0.0",
            "0.2.0",
            "0.1.8",
            "0.1.7",
            "0.1.6",
            "0.1.5",
            "0.1.4",
            "0.1.3",
            "0.1.2",
            "0.1.1",
            "0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-71279.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.334549390Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71279.json",
        "https://github.com/Koenkk/zigbee2mqtt",
        "https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/extension/externalJS.ts",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-71279"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "TuranSec",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71279.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-71279",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 516813,
  "published_at": "2026-08-05T12:26:25.594+00:00"
}