{
  "id": "GHSA-9c88-49p5-5ggf",
  "source": "ghsa",
  "source_url": "https://github.com/advisories/GHSA-9c88-49p5-5ggf",
  "summary": "Systeminformation has a Command Injection via unsanitized interface parameter in wifi.js retry path",
  "description": "### Summary\nA command injection vulnerability in the `wifiNetworks()` function allows an attacker to execute arbitrary OS commands via an unsanitized network interface parameter in the retry code path.\n\n### Details\nIn `lib/wifi.js`, the `wifiNetworks()` function sanitizes the `iface` parameter on the initial call (line 437). However, when the initial scan returns empty results, a `setTimeout` retry (lines 440-441) calls `getWifiNetworkListIw(iface)` with the **original unsanitized** `iface` value, which is passed directly to `execSync('iwlist ${iface} scan')`.\n\n### PoC\n1. Install `systeminformation@5.30.7`\n2. Call `si.wifiNetworks('eth0; id')`\n3. The first call sanitizes input, but if results are empty, the retry executes: `iwlist eth0; id scan`\n\n### Impact\nRemote Code Execution (RCE). Any application passing user-controlled input to `si.wifiNetworks()` is vulnerable to arbitrary command execution with the privileges of the Node.js process.",
  "product": "systeminformation",
  "severity": "high",
  "cvss": {
    "score": 8.4,
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
    "version": "3.1"
  },
  "cwes": [
    "CWE-78"
  ],
  "affected": [
    {
      "ecosystem": "npm",
      "name": "systeminformation",
      "vulnerable_range": "< 5.30.8",
      "patched_version": "5.30.8"
    }
  ],
  "references": [
    {
      "url": "https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-9c88-49p5-5ggf",
      "ref_type": "advisory",
      "title": null
    },
    {
      "url": "https://github.com/sebhildebrandt/systeminformation/commit/22242aa56188f2bffcbd7d265a11e1ebb808b460",
      "ref_type": "commit",
      "title": null
    },
    {
      "url": "https://github.com/advisories/GHSA-9c88-49p5-5ggf",
      "ref_type": "advisory",
      "title": null
    }
  ],
  "aliases": [
    "CVE-2026-26280"
  ],
  "published_at": "2026-02-18T21:51:26Z",
  "ingested_at": "2026-02-19T20:48:24.947659959Z",
  "raw_source": {
    "credits": [
      {
        "type": "reporter",
        "user": {
          "avatar_url": "https://avatars.githubusercontent.com/u/261401206?v=4",
          "events_url": "https://api.github.com/users/mom3gool/events{/privacy}",
          "followers_url": "https://api.github.com/users/mom3gool/followers",
          "following_url": "https://api.github.com/users/mom3gool/following{/other_user}",
          "gists_url": "https://api.github.com/users/mom3gool/gists{/gist_id}",
          "gravatar_id": "",
          "html_url": "https://github.com/mom3gool",
          "id": 261401206,
          "login": "mom3gool",
          "node_id": "U_kgDOD5Sqdg",
          "organizations_url": "https://api.github.com/users/mom3gool/orgs",
          "received_events_url": "https://api.github.com/users/mom3gool/received_events",
          "repos_url": "https://api.github.com/users/mom3gool/repos",
          "site_admin": false,
          "starred_url": "https://api.github.com/users/mom3gool/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/mom3gool/subscriptions",
          "type": "User",
          "url": "https://api.github.com/users/mom3gool",
          "user_view_type": "public"
        }
      }
    ],
    "cve_id": "CVE-2026-26280",
    "cvss": {
      "score": 8.4,
      "vector_string": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
    },
    "cvss_severities": {
      "cvss_v3": {
        "score": 8.4,
        "vector_string": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "cwe_id": "CWE-78",
        "name": "Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')"
      }
    ],
    "description": "### Summary\nA command injection vulnerability in the `wifiNetworks()` function allows an attacker to execute arbitrary OS commands via an unsanitized network interface parameter in the retry code path.\n\n### Details\nIn `lib/wifi.js`, the `wifiNetworks()` function sanitizes the `iface` parameter on the initial call (line 437). However, when the initial scan returns empty results, a `setTimeout` retry (lines 440-441) calls `getWifiNetworkListIw(iface)` with the **original unsanitized** `iface` value, which is passed directly to `execSync('iwlist ${iface} scan')`.\n\n### PoC\n1. Install `systeminformation@5.30.7`\n2. Call `si.wifiNetworks('eth0; id')`\n3. The first call sanitizes input, but if results are empty, the retry executes: `iwlist eth0; id scan`\n\n### Impact\nRemote Code Execution (RCE). Any application passing user-controlled input to `si.wifiNetworks()` is vulnerable to arbitrary command execution with the privileges of the Node.js process.",
    "ghsa_id": "GHSA-9c88-49p5-5ggf",
    "github_reviewed_at": "2026-02-18T21:51:26Z",
    "html_url": "https://github.com/advisories/GHSA-9c88-49p5-5ggf",
    "identifiers": [
      {
        "type": "GHSA",
        "value": "GHSA-9c88-49p5-5ggf"
      },
      {
        "type": "CVE",
        "value": "CVE-2026-26280"
      }
    ],
    "nvd_published_at": null,
    "published_at": "2026-02-18T21:51:26Z",
    "references": [
      "https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-9c88-49p5-5ggf",
      "https://github.com/sebhildebrandt/systeminformation/commit/22242aa56188f2bffcbd7d265a11e1ebb808b460",
      "https://github.com/advisories/GHSA-9c88-49p5-5ggf"
    ],
    "repository_advisory_url": "https://api.github.com/repos/sebhildebrandt/systeminformation/security-advisories/GHSA-9c88-49p5-5ggf",
    "severity": "high",
    "source_code_location": "https://github.com/sebhildebrandt/systeminformation",
    "summary": "Systeminformation has a Command Injection via unsanitized interface parameter in wifi.js retry path",
    "type": "reviewed",
    "updated_at": "2026-02-18T21:51:26Z",
    "url": "https://api.github.com/advisories/GHSA-9c88-49p5-5ggf",
    "vulnerabilities": [
      {
        "first_patched_version": "5.30.8",
        "package": {
          "ecosystem": "npm",
          "name": "systeminformation"
        },
        "vulnerable_functions": [],
        "vulnerable_version_range": "< 5.30.8"
      }
    ],
    "withdrawn_at": null
  }
}