Skip to content

Commit 22242aa

Browse files
wifiNetworks() fixed CWE-78 command injection issue (linux)
1 parent 41c7ea4 commit 22242aa

File tree

6 files changed

+28
-7
lines changed

6 files changed

+28
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
9090

9191
| Version | Date | Comment |
9292
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
93+
| 5.30.8 | 2026-02-14 | `wifiNetworks()` fixed CWE-78 command injection issue (linux) |
9394
| 5.30.7 | 2026-01-31 | `networkInterfaces()` fixed getWindowsIEEE8021x issue (windows) |
9495
| 5.30.6 | 2026-01-22 | `graphics()` improved nvidia-smi detection (windows) |
9596
| 5.30.5 | 2026-01-16 | `networkInterfaces()` fix uppercase iface names (linux) |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
## The Systeminformation Project
3232

3333
This is amazing. Started as a small project just for myself, it now has > 19,000
34-
lines of code, > 700 versions published, up to 15 mio downloads per month, > 450
34+
lines of code, > 700 versions published, up to 20 mio downloads per month, > 480
3535
mio downloads overall. Top 10 NPM ranking for backend packages. Thank you to all
3636
who contributed to this project!
3737

docs/history.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ <h3>Full version history</h3>
5757
</tr>
5858
</thead>
5959
<tbody>
60+
<tr>
61+
<th scope="row">5.30.8
62+
</th>
63+
<td>2026-02-14</td>
64+
<td><span class="code">wifiNetworks()</span> fixed CWE-78 command injection issue (linux)</td>
65+
</tr>
6066
<tr>
6167
<th scope="row">5.30.7
6268
</th>

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@
166166
<body>
167167
<header class="bg-image-full">
168168
<div class="top-container">
169-
<a href="security.html" class="recommendation">Security advisory:<br>Update to v5.27.14</a>
169+
<a href="security.html" class="recommendation">Security advisory:<br>Update to v5.30.8</a>
170170
<img class="logo" src="assets/logo.png" alt="logo">
171171
<div class="title">systeminformation</div>
172172
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
173-
<div class="version">New Version: <span id="version">5.30.7</span></div>
173+
<div class="version">New Version: <span id="version">5.30.8</span></div>
174174
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
175175
</div>
176176
<div class="down">
@@ -212,7 +212,7 @@
212212
<div class="title">Downloads last month</div>
213213
</div>
214214
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
215-
<div class="numbers">957</div>
215+
<div class="numbers">969</div>
216216
<div class="title">Dependents</div>
217217
</div>
218218
</div>

docs/security.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,21 @@
4444
<div class="col-12 sectionheader">
4545
<div class="title">Security Advisories</div>
4646
<div class="text">
47+
<h2>wifiNetworks Command Injection Vulnerability</h2>
48+
<p><span class="bold">Affected versions:</span>
49+
&lt; 5.30.8<br>
50+
<span class="bold">Date:</span> 2026-02-14<br>
51+
<span class="bold">CVE indentifier</span> ...
52+
</p>
53+
54+
<h4>Impact</h4>
55+
<p>We had an issue that there was a possibility to perform a potential command injection possibility by manipulating SSIDs in <span class="code">wifiNetworks()</span> on linux machines.</p>
56+
57+
<h4>Patch</h4>
58+
<p>Problem was fixed with parameter checking. If you are using version 5, please upgrade to version >= 5.30.8.</p>
59+
<hr>
60+
<br>
61+
4762
<h2>fsSize Command Injection Vulnerability</h2>
4863
<p><span class="bold">Affected versions:</span>
4964
&lt; 5.27.14<br>
@@ -58,7 +73,6 @@ <h4>Patch</h4>
5873
<p>Problem was fixed with parameter checking. If you are using version 5, please upgrade to version >= 5.27.14.</p>
5974
<hr>
6075
<br>
61-
6276
<h2>SSID Command Injection Vulnerability</h2>
6377
<p><span class="bold">Affected versions:</span>
6478
&lt; 5.23.7<br>

lib/wifi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ function wifiNetworks(callback) {
437437
const res = getWifiNetworkListIw(ifaceSanitized);
438438
if (res === -1) {
439439
// try again after 4 secs
440-
setTimeout((iface) => {
441-
const res = getWifiNetworkListIw(iface);
440+
setTimeout(() => {
441+
const res = getWifiNetworkListIw(ifaceSanitized);
442442
if (res !== -1) {
443443
result = res;
444444
}

0 commit comments

Comments
 (0)