Repository navigation
chore(deps): upgrade systeminformation to v5.33.16 [SECURITY] - #1439
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/npm-systeminformation-vulnerability
branch
from
November 4, 2026 07:04
9d3e533 to
f3c3ee7
Compare
renovate
Bot
force-pushed
the
renovate/npm-systeminformation-vulnerability
branch
2 times, most recently
from
November 8, 2026 21:53
d247e07 to
a80825d
Compare
renovate
Bot
force-pushed
the
renovate/npm-systeminformation-vulnerability
branch
from
November 11, 2026 21:21
a80825d to
8b49467
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
5.31.7→5.33.16Systeminformation vulnerable to Linux command injection in networkInterfaces() via unsanitized NetworkManager connection profile name
CVE-2026-44724 / GHSA-hvx9-hwr7-wjj9
More information
Details
Summary
On Linux,
systeminformationis vulnerable to command injection innetworkInterfaces()when an active NetworkManager connection profile name contains shell metacharacters.This is not caused by a caller passing attacker-controlled arguments into
networkInterfaces(). The vulnerable value is obtained internally from realnmcli device statusoutput. The library sanitizes the network interface name before using it in shell commands, but it does not apply equivalent sanitization to the parsed NetworkManager connection profile name. That unsanitizedconnectionNameis then interpolated into three shell command strings executed throughexecSync().This issue was validated locally against real NetworkManager and real
nmcli. Calling only:was enough to trigger execution. The injected command ran with the privileges of the calling Node.js process.
Affected Component & Versions
Affected component:
lib/network.jsnetworkInterfaces()nmclihandlingImpact & Threat Model
Confirmed impact:
An attacker who can create or rename an active NetworkManager connection profile can execute arbitrary shell commands when a Node.js process using
systeminformationcallsnetworkInterfaces().Confirmed realistic affected deployments include:
If such a process runs with elevated privileges, the injected command executes with those same elevated privileges.
Confirmed facts:
nmcli device statusreturned the name unchanged.networkInterfaces()parsed that value and reused it in shell commands.Not claimed:
AV:NorAV:Aclaim is made..nmconnectionimport was not confirmed as a remote or unauthenticated path.Root Cause Analysis
The root cause is inconsistent trust handling between the Linux interface name and the NetworkManager connection profile name.
The interface name is sanitized before it is embedded into shell commands:
However, the NetworkManager connection name is parsed from command output and later reused without equivalent sanitization:
That is unsafe because NetworkManager profile names can contain shell metacharacters. Quoting the value inside
"${connectionName}"does not make it safe. A connection name containing",$(),;, backticks, or similar shell syntax can break out of the intended argument context or trigger command substitution.The vulnerable code executes through
execSync(), which invokes a shell for command strings. As a result, interpolatingconnectionNameinto the command string creates a command-injection sink.Exact Code Flow & File Paths
Source:
lib/network.js:538-544The parsed value is then returned as
connectionName.Trigger:
lib/network.js:987-991Sink 1:
lib/network.js:620Sink 2:
lib/network.js:660Sink 3:
lib/network.js:676There are three distinct exploitable
connectionNamesinks.Proof of Concept (PoC) & Reproduction Steps
The following PoC is harmless and local-only. It uses a dummy NetworkManager connection and writes proof files under /tmp.
Run from the project root:
cd /path/to/systeminformationConfirm proof files do not already exist:
Create a malicious NetworkManager dummy profile:
Assign a documentation-only address so Node’s os.networkInterfaces() sees the dummy interface:
nmcli connection modify 'si-ghsa$(id>/tmp/si-nm-id-proof)$(pwd>/tmp/si-nm-pwd-proof)$(env>/tmp/si-nm-env-proof)' \ ipv4.method manual \ ipv4.addresses 192.0.2.253/32 \ ipv6.method disabledActivate the profile:
nmcli connection up 'si-ghsa$(id>/tmp/si-nm-id-proof)$(pwd>/tmp/si-nm-pwd-proof)$(env>/tmp/si-nm-env-proof)'Confirm real nmcli exposes the malicious connection name unchanged:
nmcli device status | grep si-nmghsa0Expected relevant output includes the active connection name:
Trigger the vulnerable library path with no attacker-controlled function argument:
Confirm command execution:
Inspect environment key categories without printing secret values:
validated evidence:
Local Validation Summary & Aggregate Reachability
Validation was performed against real NetworkManager and real
nmcli. The primary proof did not rely on a PATH stub.Observed behavior:
nmcli device status.require('./lib').networkInterfaces()triggered execution.idoutput matched the calling Node.js process identity.pwdoutput matched the Node.js process working directory.Aggregate API reachability:
lib/index.js:94:getStaticData()reachesnetwork.networkInterfaces()as part of static data collection.lib/index.js:307:getAllData()reachesgetStaticData()first.During local validation, an aggregate runtime attempt later hit an unrelated
osinfo.jserror in that environment. Because of that, aggregate source reachability is confirmed, but aggregate call completion was not used as the primary exploit proof.Why This Is Not Intended Behavior
networkInterfaces()is documented and expected to return network interface metadata such as interface name, IP addresses, DHCP state, DNS suffix, and IEEE 802.1X status.The library already shows an intent to protect shell command construction by sanitizing interface names before shell use. The missing sanitization for
connectionNameis inconsistent with that defensive pattern.Executing shell commands embedded in a NetworkManager profile name is not a documented feature, not required to return network metadata, and not an expected design tradeoff. This is a command injection vulnerability caused by unsafe shell-string construction.
Recommended Fix
Avoid shell interpolation entirely for NetworkManager calls.
Replace shell command strings with
execFileSync()orspawnSync()using argument arrays. For example:Recommended code-level changes:
nmcli device status 2>/dev/null | grep ${interfaceName}with argument-array execution and filter rows in JavaScript.nmcli connection show "${connectionName}" | grep ...shell string with argument-array execution.ipv4.method,ipv4.dns-search, and802-1x.eapin JavaScript instead of using shellgrep.Regression Test Ideas
Add Linux-specific tests for NetworkManager connection names containing shell metacharacters.
Suggested malicious connection names:
name$(...)name"; ...; #name|...name;...Expected behavior after the fix:
networkInterfaces()completes without executing shell syntax from the connection name.For unit-level coverage, mock the NetworkManager command wrapper so that
nmcli device statusreturns a connection name containing metacharacters, then assert that subsequent calls use argument arrays rather than shell strings.Credit request
If you publish an advisory or assign a CVE, please credit me as:
Ali Firas (thesmartshadow) - https://www.smartshadow.dev
Severity
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
systeminformation: OS command injection in networkInterfaces() via interfaces(5) source-directive path on Linux
CVE-2026-50289 / GHSA-5xpp-75jx-m839
More information
Details
Summary
On Linux,
systeminformation'snetworkInterfaces()is vulnerable to OS command injection through the Debian/Ubuntuinterfaces(5)sourcedirective. While collecting per-interface DHCP state, the library reads/etc/network/interfacesand, for everysource <path>line it encounters, extracts the path token from the file content and interpolates it unquoted into a shell command string that is run viaexecSync(). Asourceline whose path contains shell metacharacters executes arbitrary commands with the privileges of the calling Node.js process.This is the same root-cause class as the previously-fixed NetworkManager-connection-name injection in this file: a value parsed out of local system state is re-interpolated into a shell command string without sanitization. The NetworkManager paths were converted to argument-array execution, but the
interfaces(5)source-recursion sink incheckLinuxDCHPInterfaces()was left unfixed and still builds a shell string. The input to this sink is unsanitized (unlike theiface/connectionNamepaths, which pass throughutil.sanitizeStringin strict mode before reaching their commands).Impact
An attacker who can place or influence a
sourced path in/etc/network/interfaces(or any file it transitivelysources) achieves command execution inside any process that callsnetworkInterfaces(). Realistic affected deployments are the same ones that motivate this library:If such a process runs with elevated privileges, the injected command runs with those privileges.
networkInterfaces()is a core, frequently-called API and is reached transitively bygetStaticData()/getAllData(), so the sink is exercised by ordinary usage on Linux.Threat model
The dangerous value is not a function argument supplied by the caller. It is read from the content of an
interfaces(5)configuration file. The stock Debian/Ubuntu layout usessource /etc/network/interfaces.d/*andsource-directoryfan-out, so the parser routinely followssourcedirectives into other files and re-parses theirsourcelines. Any actor who can write a file that becomes reachable through thatsourcechain — for example a lower-privileged process or configuration-management hook that drops a file into asourced directory, or a tool that materializes an interfaces snippet from semi-trusted input — controls the path token that lands in the shell command. No NetworkManager activation or special hardware is required; the only precondition is that onesourced path string contains shell metacharacters.Vulnerable code
lib/network.js,checkLinuxDCHPInterfaces()(current5.31.6line numbers):util.execOptsLinuxsets noshelloption, soexecSync(cmd, util.execOptsLinux)runscmdthrough/bin/sh. The${file}token is interpolated raw — not quoted, not passed throughutil.sanitizeString/sanitizeShellString— so;,$( ), backticks,|,&, redirections, and even a bare space all break out of the intendedcat/greppipeline.Reach chain to the public API:
networkInterfaces()is also reached bygetStaticData()andgetAllData()inlib/index.js.Reproduction
The PoC exercises the verbatim shipped sink function extracted from the installed
node_modules/systeminformation/lib/network.js(version pinned to5.31.6), bound to the samechild_process.execSyncand shippedutil.execOptsLinuxthe library uses. It then drives the exactsource-recursion data flow with a malicious sourced path. A negative control with a benign path confirms no execution occurs on well-formed input.Install the pinned vulnerable version:
poc.js:Run it:
Verbatim captured output (against
systeminformation@5.31.6):The malicious
sourcepath caused the injectedidcommand to run (marker created, contents = the calling process identity), while the benignsourcepath parsed normally (["eth0"]) and produced no marker. The injected command runs with the privileges of the Node.js process that callednetworkInterfaces().End-to-end reproduction
The transcript above is the end-to-end run against the pinned published artifact
systeminformation@5.31.6, loading the shippedlib/network.jsandlib/util.jsfromnode_modules. Exact commands:The marker file
PWNEDis created only by the injected command path; the negative-control markerPWNED_NEGis never created. The verbatim captured stdout is shown in the Reproduction section above.Suggested fix
Stop building a shell string from a path that comes out of file content. Read the file with
fs(no shell), or use argument-array execution, and never interpolate a parsedsourcepath into a shell command. For example:If shelling out is preferred, replace the
cat/grepshell string with argument-array execution as shown below, so the path is passed as a single argv element and the shell never re-parses it:Quoting alone is insufficient. Treat every value parsed from
interfaces(5)files as untrusted even though it originates from local system state, consistent with the defensiveutil.sanitizeStringpattern already applied to the interface name and NetworkManager connection name on the sibling paths.Fix PR
A fix is provided on a private temporary fork (not pushed to any public fork during the embargo). The branch replaces the
cat ${file}shell string incheckLinuxDCHPInterfaces()with a non-shellfs.readFileSyncread and adds a Linux regression test that points the function at aninterfacesfile containing asourcedirective with shell metacharacters and asserts that no side-effect command runs (no marker file is produced) while a benign sourced DHCP interface is still parsed.Credit
Reported by tonghuaroot.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
systeminformation has path traversal in Linux networkStats() that allows symlink-based file disclosure outside /sys/class/net
CVE-2026-116673 / GHSA-4vjg-vx72-qq4g
More information
Details
Summary
On Linux,
systeminformation@5.33.13builds/sys/class/net/<iface>paths from the caller-suppliednetworkStats(iface)value without checking that the resolved path stays inside/sys/class/net. A caller who can create a symlink fixture and control the value passed to this API can make the function return the first line of a file readable by the Node process.Details
The strict string sanitizer removes shell metacharacters but retains
/and.. The Linux implementation uses this value in anfs.existsSync('/sys/class/net/' + iface)check and then in sevencatpaths for interface statistics. Both operations follow..path components and symlinks. The code does not validate the value as an interface name or enforce resolved-path containment.The proof of concept below creates the expected statistics files in a directory writable by the unprivileged
nobodyuser. Itsoperstatesymlink points to a synthetic mode-0600 file under/root. The package call runs as root and returns the marker even thoughnobodycannot read that file.PoC
Use a disposable Ubuntu Linux VM with Node.js, npm, and
runuserinstalled. These steps create and remove only a synthetic marker and a temporary fixture. Install the affected version:mkdir si-netstats-repro cd si-netstats-repro npm init -y npm install systeminformation@5.33.13Save the following as
poc.cjsin that directory, then runsudo node poc.cjs:Expected result:
{ "nobodyCouldRead": false, "libraryReturnedRootOnlyMarker": true, "returnedOperstate": "SYNTHETIC_ROOT_ONLY_MARKER_<pid>" }Impact
The demonstrated impact is disclosure to the API caller of the first line of a file readable by the Node process. The package is a library and does not expose a network endpoint. A consuming application route that forwards remote attacker input to this API and returns its result was not established, so remote exploitability is not demonstrated.
Severity
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
systeminformation has prototype pollution in
networkStats()via the interface nameCVE-2026-116674 / GHSA-7648-jmwf-vw7j
More information
Details
Summary
networkStats()keeps a per interface cache for computingrx_sec/tx_secbetween calls.The cache is a plain JavaScript object and is indexed with the interface name the caller
supplied. Passing the name
__proto__makes every cache write land onObject.prototypeinstead of the cache, polluting every object in the Node.js process.
An application is affected if it passes untrusted input as the
ifacesargument ofsi.networkStats()and runs on FreeBSD, OpenBSD or NetBSD.Details
The vulnerable code
lib/network.jsdeclares the cache as a plain object:calcNetworkSpeed()writes into it, keyed by the interface name:With
iface === '__proto__'this misbehaves twice:_network['__proto__']does not read a missing own property — it invokes the inherited__proto__getter and returnsObject.prototype, which is truthy. Theif (!_network[iface])guard therefore never creates the{}placeholder.Object.prototype.After one call,
rx_bytes,tx_bytes,rx_sec,tx_sec,ms,last_msandoperstateare visible on every object in the process. A second call takes the other branch
(
_network['__proto__'].msis now truthy) and keeps them updated.Why the existing sanitizing does not help
The interface name does pass through
util.sanitizeString(iface, true)before it is used asthe cache key. That function is a shell metacharacter filter, built to stop command
injection in the
netstat/ifconfiginvocations — a different threat. Property names madeof letters and underscores are legitimate interface names and pass through untouched:
The sanitizer is doing its job; the gap is that no layer treats the value as an object key.
Reachability
The cache write is guarded incidentally on three of four platform branches. These guards exist
for unrelated reasons and are not a deliberate defence:
fs.existsSync('/sys/class/net/' + ifaceSanitized)netstatto emit a data row beyond the headerObject.prototypestays cleanif (rx_bytes && tx_bytes)— requires a real adapter matchif (!error) { …; result = calcNetworkSpeed(ifaceSanitized, …) }netstatexit reaches it, andnetstat -ibndI <unknown>prints only its header and exits0The important part is not that three platforms happen to be safe, but that nothing in the
design prevents the write. Any future platform branch without such a guard reopens the issue,
which is why the fix is applied at the cache rather than at the call sites.
Age
The pattern predates the v5 line —
git log -S "_network[iface] = {}"traces it back to arefactoring before
v3.42.5. The v3 and v4 lines are end of life; the advisory covers v5.Impact
The attacker controls which attributes appear on
Object.prototypebut not their values —those come from the interface statistics (
rx_bytes,ms,operstate…). The attributenames are fixed by the library, so this is not an arbitrary-key pollution primitive.
The consequences are therefore application specific and arise from name collisions:
if (obj.operstate),if (obj.ms)or similar on an objectthat should not have those properties now takes the wrong branch.
for…inloops over plain objects gain seven extra enumerable keys, which can corruptserialisation, configuration merging or validation logic.
{}as a lookup map and check membership withinor truthiness canreturn values for keys that were never inserted.
No path to remote code execution is known, and the values cannot be chosen by the attacker.
Proof of concept
The underlying primitive (any platform)
End to end through the public API (FreeBSD / OpenBSD / NetBSD)
On Linux, macOS and Windows the same call returns an empty result set and leaves
Object.prototypeuntouched, for the reasons in the Reachability table.Patch
lib/network.js— give the cache a null prototype, so__proto__becomes an ordinary ownproperty instead of a setter into the prototype chain:
This is the smallest change that fixes the class of problem rather than one reachable path:
Object.keys(),member reads and writes all work unchanged on a null prototype object.
(
lib/filesystem.js:114-115,lib/graphics.js:1060,lib/graphics.js:1087).Object.createis ES5.1, well below the declaredengines.node >= 10.0.0.After the patch the hostile name is stored as a normal cache entry:
Workarounds
For users who cannot upgrade immediately, either of these is sufficient:
si.networkInterfaces(), or reject the names__proto__,constructorandprototype.ifacesargument. Passing'*'or omitting theargument is unaffected, because those names come from the system rather than the caller.
Freezing
Object.prototype(Object.freeze(Object.prototype)) also prevents the write, but ithas wide-reaching side effects on other dependencies and is not recommended as a general
mitigation.
Affected versions
All
5.xreleases up to and including5.33.12. Earlier major lines contain the same patternbut are end of life.
What was verified, and what was not
Verified on this machine (macOS 27, Node 24):
iface = '__proto__';util.sanitizeString('__proto__', true)returns the string unchanged, while shellmetacharacters are stripped;
netstat -bdnI <unknown-interface>prints only its header and exits0;Object.prototypeclean.Not verified, because no such host was available:
reading the BSD branch of
networkStatsSingle()— where thecalcNetworkSpeed()call sitsoutside the row parsing loop and is reached whenever
netstatexits successfully — combinedwith the observed
netstatexit behaviour above. Worth confirming on a BSD host beforepublishing, since the affected-platform list depends on it.
Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:LReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
systeminformation vulnerable to Windows command injection in services() through Unicode quotation marks
CVE-2026-116576 / GHSA-3f7j-7jwc-fxfj
More information
Details
Summary
On Windows,
systeminformation@5.33.15builds a PowerShell command using the value passed toservices(). The default sanitizer removes ASCII quotes but keeps Unicode curly quotes, spaces, and parentheses. A crafted service name can use those characters to break out of the generated filter string and run a PowerShell expression. The expression runs with the permissions of the Node.js process.This report confirms version
5.33.15. Other package versions have not been checked.Details
In
lib/processes.js,services()sanitizes the caller's string withsanitizeShellString()and later inserts each resulting name into aGet-CimInstance Win32_Service -Filtercommand. The Windows branch passes that command toutil.powerShell().The sanitizer in
lib/util.jsremoves the ASCII double quote, but it does not remove U+201C or U+201D, the left and right curly double quotation marks. It also permits spaces and parentheses when called in its default, non-strict mode. PowerShell accepts the curly marks as string delimiters, so an input can end the filter string and place a command expression in the generated command.For example, the input below uses curly quotation marks to end the generated filter string and execute
New-Item. I reproduced this call on Windows against the checked-outsysteminformation@5.33.15source; it created a marker file with the Node.js process account.Proof of concept
Run this on Windows in a disposable directory with Node.js and PowerShell available:
Save the following as
poc.cjs, then runnode poc.cjs:Expected output:
The Windows run returned an array and created the marker (
markerCreated: true). A benign input left the marker absent. The script removes the marker afterward. I did not identify an application network route that forwards remote input toservices(), so remote exploitability depends on the consuming application.Impact
An application that passes attacker-controlled input to
services()on Windows can execute PowerShell commands with the Node.js process account's permissions. Depending on that account, commands may read or change accessible files, alter application data, or disrupt the service. I searched this repository for HTTP servers, route handlers, and listener calls and found none.services()is exposed through the package API andgetDynamicData(), so a consuming application could make the input network-reachable if it forwards request data. A separate loopback HTTP harness did trigger the command through a query parameter, but that server was test code and is not part of this repository. The project'sdocs/security.htmlalready warns that arbitrary untrusted input toservices()needs caution because package sanitization does not cover every case.Severity
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
sebhildebrandt/systeminformation (systeminformation)
v5.33.16Compare Source
Full Changelog: sebhildebrandt/systeminformation@v5.33.15...v5.33.16
v5.33.15Compare Source
Full Changelog: sebhildebrandt/systeminformation@v5.33.14...v5.33.15
v5.33.14Compare Source
Full Changelog: sebhildebrandt/systeminformation@v5.33.13...v5.33.14
v5.33.13Compare Source
Full Changelog: sebhildebrandt/systeminformation@v5.33.12...v5.33.13
v5.33.12Compare Source
Full Changelog: sebhildebrandt/systeminformation@v5.33.11...v5.33.12
v5.33.11Compare Source
Full Changelog: sebhildebrandt/systeminformation@v5.33.10...v5.33.11
[
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.