Actively exploited vulnerability / CVE-2021-21315
systeminformation library for Node.js can let attackers run unwanted commands
A flaw in the systeminformation library can let an attacker make your server run commands you never authorized. This can lead to data theft, tampering with your application, or your server being used for further attacks. It is on the lists of vulnerabilities used in real attacks kept by both CISA (the US cybersecurity agency) and ENISA (the EU cybersecurity agency).
- Identifier
- CVE-2021-21315 · EUVD-2021-0527
- Severity
- High (7.1/10)
- On the CISA list (US)
- yes, since 18 January 2022
- Deadline given to US federal agencies
- 1 February 2022
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 90.7% (FIRST's estimate for the next 30 days)
Does it concern you?
This is an open source component that developers use in Node.js applications to read hardware and operating system information. You may have it if your company runs web or internal applications built with Node.js, whether by your own team or a supplier.
Versions before 5.3.1 are affected. Ask your developer or application supplier to check the version of the systeminformation package in the project's dependency list.
Affected products and versions
- Npm package System Information Library for Node.JS
- systeminformation: before 5.3.1
What to do
Have the systeminformation package updated to version 5.3.1 or later. If that cannot be done right away, follow the vendor's guidance on checking the data passed to this library.
Versions that contain the fix: 5.3.1.
The official description
The text below is the description from the public database.
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.
Sources
- Debian Security Tracker
- GitHub Advisory Database
- CVE Program
- Vendor advisory: nvd.nist.gov
- NVD
- ENISA EUVD
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.