vulnerability
npm systeminformation package: CVE-2021-21315: Command Injection Vulnerability
| Severity | CVSS | Published | Added | Modified |
|---|---|---|---|---|
| 9 | (AV:L/AC:L/Au:N/C:P/I:P/A:P) | Feb 14, 2021 | Mar 7, 2022 | May 3, 2022 |
Severity
9
CVSS
(AV:L/AC:L/Au:N/C:P/I:P/A:P)
Published
Feb 14, 2021
Added
Mar 7, 2022
Modified
May 3, 2022
Description
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.
Solution
npm-systeminformation-package-upgrade-latest
Rapid7 Labs
2026 Global Threat Landscape Report
The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.