My First CVE: Windows Command Injection in systeminformation (CVE-2026-116576)
I’m really happy to share that my second accepted GHSA report now has a CVE: CVE-2026-116576. It is my first CVE, and I’m still pretty excited about it.
The issue is in systeminformation, a Node.js system and OS information library. While reading through its source, I got suspicious about how services() uses a service name to build a command on Windows. I could tell the input handling looked off, but I couldn’t explain exactly how someone could break out of it yet. It took me a bit of tracing before I spotted the part that mattered.
At a glance
- Package: npm package
systeminformation - Affected versions: before
5.33.16 - Version I reproduced:
5.33.15on Windows - Fixed version:
5.33.16 - Weakness: CWE-78, OS command injection
- Severity: High, CVSS 3.1 score of 7.8
- CVE:
CVE-2026-116576 - GHSA:
GHSA-3f7j-7jwc-fxfj
The part I couldn’t explain at first
On Windows, services() passes the supplied name through sanitizeShellString(), then adds it to a PowerShell Get-CimInstance Win32_Service -Filter command. The sanitizer removes ASCII quotes and several other characters. Its default mode still allows spaces and parentheses, though, and it doesn’t remove the Unicode curly quotation marks “ and ”.
PowerShell treats those curly marks as quotation marks too. An input containing them could end the intended filter string and put a PowerShell expression into the command. The resulting command is run by util.powerShell() with the permissions of the Node.js process.
That’s when the issue finally clicked for me. The sanitizer filtered the ASCII quote characters, but the PowerShell parser also treated these Unicode versions as quotes.
Following the value into the command
The input is sanitized in services(), copied into a list of service names, then inserted into the Windows command. The relevant part of the Windows branch in the tested source looks like this:
let wincommand = 'Get-CimInstance Win32_Service';
if (srvs[0] !== '*') {
wincommand += ' -Filter "';
srvs.forEach((srv) => {
wincommand += `Name='${srv}' or `;
});
wincommand = `${wincommand.slice(0, -4)}"`;
}
wincommand += ' | select Name,Caption,Started,StartMode,ProcessId | fl';
util.powerShell(wincommand);
The service name is inserted directly into the PowerShell filter text. The filter has its own quotes, and the sanitizer was meant to keep the supplied name from changing how PowerShell parses that text. Because the Unicode quotes survived, the input could change that parse and add an expression to the command.
Testing the idea
I tested the checked-out [email protected] source on Windows. In a disposable directory, I installed that package version:
npm install [email protected]
My test used New-Item to create a harmless marker file, then checked that it existed and removed it afterward. The service name passed to the API was:
await si.services(`not-a-service” (New-Item -Name ${markerName} -ItemType File -Force) “`);
The marker appeared with the crafted input. A benign input left it absent. That was the point where a vague suspicion became a confirmed command injection. The GitHub advisory includes the complete proof-of-concept script.
My reproduction confirms 5.33.15. The published advisory lists versions before 5.33.16 as affected, and lists 5.33.16 as patched. I did not independently check every earlier version.
What the impact looks like
The injected expression runs with the permissions of the Node.js process. Depending on that account, it could read or change accessible files, alter application data, or disrupt the service.
systeminformation is a library and does not expose a network service by itself. Remote reachability depends on whether a consuming application passes attacker-controlled input to services() or getDynamicData(). I did not find an application route in this repository that forwards remote input to the affected function.
What the CVSS score means
CVSS summarizes a vulnerability’s attack conditions and potential impact. The advisory gives this issue a 7.8 High score:
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- AV:L / AC:L / PR:L / UI:N: The score treats the attack as local, with low complexity and low required privileges. No separate user action is needed once the attacker can supply the input. A consuming app could expose that input remotely, but I did not find or demonstrate such a route here.
- S:U: The impact stays within the security authority of the affected process. PowerShell runs with the Node.js process account.
- C:H / I:H / A:H: Command execution could read or change information available to that account, or disrupt the app or other resources it can access.
These High impact values describe what command execution could potentially allow. My proof of concept demonstrated execution by creating a marker file. It did not demonstrate reading sensitive data, changing application data, or disrupting a service. The actual impact depends on the Node.js process permissions.
Links
- GitHub security advisory
- CVE record
- Patched release, systeminformation 5.33.16
- services() input handling in tested v5.33.15
- Windows command builder in the tested source
- The sanitizer in the tested source
- CVSS v3.1 specification
This one means a lot to me. I started with a part of the code that felt suspicious, even though I couldn’t say why. Then I realized the sanitizer didn’t account for the Unicode quotation marks PowerShell accepts. Finding that missing check, reproducing it, and seeing the report accepted has me really happy. I’m also glad the issue was fixed in 5.33.16.
I have a writeup for my first accepted GHSA too. It’s still an unpublished draft while I wait for that report to get a CVE number. I’ll publish it once it does.