High

Systeminformation has a Command Injection via unsanitized interface parameter in wifi.js retry path

  • Disclosed: 18.02.2026
  • Updated: 11.10.2026 10:22

Summary

A 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.

Details

In 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').

PoC

  1. Install systeminformation@5.30.7
  2. Call si.wifiNetworks('eth0; id')
  3. The first call sanitizes input, but if results are empty, the retry executes: iwlist eth0; id scan

Impact

Remote 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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package systeminformation < 5.30.8 5.30.8

References

CVSS score 8.4/10
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-78
Platform
npm
Package
systeminformation
Disclosed
18.02.2026
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-9c88-49p5-5ggf - CC BY 4.0

Vulnerability history: systeminformation

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (14) in the archive
Total entries
14
First → latest
10.2020 07.2026
Without a fix
0
Exploited in attacks
1

Severity breakdown

  • Critical 1
  • High 10
  • Medium 3

Disclosures per year

  1. 2020: 4
  2. 2021: 2
  3. 2022: 1
  4. 2023: 1
  5. 2024: 1
  6. 2025: 1
  7. 2026: 4
Severity:
  1. Systeminformation has a Command Injection via unsanitized interface parameter in wifi.js retry path this entry
    High · 8.4 CVE-2026-26280 < 5.30.8 5.30.8
  2. Critical · 9.8 CVE-2023-42810 >= 5.0.0, < 5.21.7 5.21.7
  3. High · 7.3 CVE-2020-7778 < 4.30.2 4.30.2
  4. High · 8.9 CVE-2021-21388 < 5.6.4 5.6.4
  5. High · 7.8 Exploited in attacks CVE-2021-21315 < 5.3.1 5.3.1
  6. High · 8.8 CVE-2020-7752 < 4.27.11 4.27.11

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.