CVE-2021-21315: System Information Library for Node.JS Command Injection
Yes. CVE-2021-21315 has been used in real attacks. CISA added it to its Known Exploited Vulnerabilities catalog on 18 January 2022. Public exploit code is available: a Nuclei detection template. EPSS puts the chance of further exploitation attempts in the next 30 days at 90.7%.
- Exploited in real attacks
- Yes. On CISA's exploited list since 18 January 2022
- Used in ransomware
- Not known
- Public exploit code
- A Nuclei detection template
- Chance of exploitation (EPSS)
- 90.7% in the next 30 days, higher than 99.8% of scored vulnerabilities. Scored 5 December 2026
- Severity (CVSS)
- 7.1 High (version 3.1)
- Affects
- Npm package System Information Library for Node.JS
- Type of flaw
- OS command injection (CWE-78)
- Published
- 16 February 2021
- US federal patch deadline
- 1 February 2022
What it is
In this vulnerability, an attacker can send a malicious payload that will exploit the name parameter. After successful exploitation, attackers can execute remote.
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.
Description from the CVE record.
Is CVE-2021-21315 being exploited?
Yes. CISA lists a vulnerability as known exploited only when it has reliable evidence of exploitation in real attacks, and it added CVE-2021-21315 on 18 January 2022.
Public exploit code
These are public references that anyone, including an attacker, can find. Their existence lowers the skill needed to use the flaw.
| Source | Entry | Published |
|---|---|---|
| Nuclei template | Node.JS System Information Library <5.3.1 - Remote Command Injection |
Affected products
- sebhildebrandt systeminformation: < 5.3.1
From the CVE record. Check the vendor advisory for the full list of fixed versions.
What to do
CISA's required action: Apply updates per vendor instructions.
Because this flaw has already been used in attacks, patching is only half the job. If an affected system was reachable while unpatched, check it for signs of compromise before trusting it again.
How to check whether you are exposed
- Find every copy. List each place Npm package System Information Library for Node.JS runs, including test systems and anything set up outside IT.
- Compare versions. Match what you find against the affected versions in the vendor advisory.
- Check reachability. An affected system that faces the internet is urgent; one reachable only from inside still matters once an attacker has a foothold.
- Assume it has been scanned. A public Nuclei template exists for this flaw, so finding exposed systems across the internet is automated.
HackDrill
Find out whether this is reachable in your systems.
A version number tells you a system is affected. A hacking drill tells you whether an attacker can actually get in through a flaw like this one in System Information Library for Node.JS. HackDrill's AI agents attack your product, infrastructure, network and cloud the way modern attackers do, and show you the real, exploitable gaps so you can fix them first.
Sources
- CVE record for CVE-2021-21315
- NVD entry
- CISA Known Exploited Vulnerabilities catalog, version 2026.12.04
- FIRST EPSS, scores dated 5 December 2026
- www.npmjs.com (x_refsource_MISC)
- github.com (x_refsource_CONFIRM)
- github.com (x_refsource_MISC)
- lists.apache.org (mailing-list, x_refsource_MLIST)
- security.netapp.com (x_refsource_CONFIRM)
Machine-readable: /api/cve/CVE-2021-21315.json