CVE-2021-21315Npm package System Information Library for Node.JS
Command Injection in System Information Library for Node.JS
High 7.8 KEV High EPSS
Follow: this CVE · Npm package · Npm package System Information Library for Node.JS We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 3.1
- 7.8
- EPSS
- 90.7% probability of exploitation in 30 days · percentile 100
- Auth required
- Yes
- In KEV since
- Jan 18, 2022
- CISA deadline
- Feb 1, 2022
- Ransomware use
- Unknown
- Published
- Feb 16, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-78
- SSVC (CISA)
- Exploitation: active · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
The npm package "systeminformation" before version 5.3.1 contains a command injection vulnerability in functions such as si.inetLatency(), si.inetChecksite(), si.services(), and si.processLoad(). An attacker with local access and limited privileges can execute arbitrary commands by passing malicious parameters. CISA has confirmed this vulnerability is being actively exploited.
Show the original NVD text
The System Information Library for Node.JS (npm package "systeminformation") is an open source collection of functions to retrieve detailed hardware, system and OS information. In systeminformation before version 5.3.1 there is a command injection vulnerability. Problem was fixed in version 5.3.1. As a workaround instead of upgrading, be sure to check or sanitize service parameters that are passed to si.inetLatency(), si.inetChecksite(), si.services(), si.processLoad() ... do only allow strings, reject any arrays. String sanitation works as expected.
Exploitation confirmed by CISA
In this vulnerability, an attacker can send a malicious payload that will exploit the name parameter. After successful exploitation, attackers can execute remote.
Action required by CISA: Apply updates per vendor instructions.
What to do
Patch available · fixed versions: 5.3.1
Update the systeminformation package to version 5.3.1 or later. If you cannot upgrade, validate and sanitize all service parameters by rejecting arrays and allowing only strings.
- Apply the vendor's security update for System Information Library for Node.JS.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was February 1, 2022.
- Check logs for signs of earlier exploitation.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | systeminformation |
< 5.3.1 |
5.3.1 |
npm install systeminformation@5.3.1 |
Per OSV / GitHub Advisories (GHSA-2m8v-572m-ff2v). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| systeminformation | systeminformation | < 5.3.1 |
| apache | cordova | 10.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Third Party Advisory
- lists.apache.org Issue Tracking Mailing List
- security.netapp.com Third Party Advisory
- www.npmjs.com Product
- www.cisa.gov US Government Resource