wifiNetworks Command Injection Vulnerability
+Affected versions:
+ < 5.30.8
+ Date: 2026-02-14
+ CVE indentifier ...
+
Impact
+We had an issue that there was a possibility to perform a potential command injection possibility by manipulating SSIDs in wifiNetworks() on linux machines.
+ +Patch
+Problem was fixed with parameter checking. If you are using version 5, please upgrade to version >= 5.30.8.
++
+
fsSize Command Injection Vulnerability
Affected versions:
< 5.27.14
@@ -58,7 +73,6 @@
Problem was fixed with parameter checking. If you are using version 5, please upgrade to version >= 5.27.14.
-
SSID Command Injection Vulnerability
Affected versions:
< 5.23.7
diff --git a/lib/wifi.js b/lib/wifi.js
index 0fd3a60..4920fe8 100644
--- a/lib/wifi.js
+++ b/lib/wifi.js
@@ -437,8 +437,8 @@ function wifiNetworks(callback) {
const res = getWifiNetworkListIw(ifaceSanitized);
if (res === -1) {
// try again after 4 secs
- setTimeout((iface) => {
- const res = getWifiNetworkListIw(iface);
+ setTimeout(() => {
+ const res = getWifiNetworkListIw(ifaceSanitized);
if (res !== -1) {
result = res;
}