CVE-2020-7778: OS Command Injection in systeminformation
Summary
CVE-2020-7778: OS Command Injection in systeminformation. Affects systeminformation versions < 4.30.2. Fixed in 4.30.2. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The systeminformation package is an npm package that provides a simple way to gather system information such as CPU, memory, disk, and network usage. It is widely used in various applications to retrieve and display system information. However, versions before 4.30.2 are vulnerable to OS command injection.
Vulnerability Detail
The vulnerability in systeminformation allows an attacker to overwrite the properties and functions of an object, which can lead to the execution of arbitrary OS commands. This can result in unauthorized access, data leakage, or even complete compromise of the affected system. The vulnerability has a CVSS score of 7.3, indicating a high severity level.
How To Fix
Latest published version: 5.33.16 as of 22 Oct 2026
npm install systeminformation@5.33.16
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
4.30.2
This is the first release that contains the fix.
npm install systeminformation@4.30.2
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Conclusion
The systeminformation package before version 4.30.2 is vulnerable to OS command injection, which can lead to the execution of arbitrary OS commands. It is crucial to update the package to the latest version to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for systeminformation →
FAQ
The systeminformation package is an npm package that provides an easy way to gather system information in Node.js applications.
OS command injection is a type of vulnerability that allows an attacker to execute arbitrary operating system commands on a target system.
The consequences of this vulnerability can vary depending on the attacker's intent, but they can include unauthorized access, data leakage, or complete compromise of the affected system.
Yes, the vulnerability can be fixed by updating the systeminformation package to version 4.30.2 or later.
You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. It analyzes your package-lock.json file and alerts you in real-time for open-source vulnerabilities.
References
Related vulnerabilities
Recent vulnerabilities recorded for systeminformation.