systeminformation@4.33.5 vulnerabilities

Advanced, lightweight system and OS information library

Direct Vulnerabilities

Known vulnerabilities in the systeminformation package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • L
Improper Input Validation

systeminformation is a simple system and OS information library.

Affected versions of this package are vulnerable to Improper Input Validation. The function versions doesn't check the input of the user, which is expected a string.

const si = require('systeminformation');
si.versions({toString : () => { console.log("This is a PoC") }});

How to fix Improper Input Validation?

Upgrade systeminformation to version 5.6.11 or higher.

<5.6.11
  • M
Arbitrary Command Injection

systeminformation is a simple system and OS information library.

Affected versions of this package are vulnerable to Arbitrary Command Injection. Service parameters passed to si.inetLatency(), si.inetChecksite(), si.services(), and si.processLoad() are not sanitized properly.

How to fix Arbitrary Command Injection?

Upgrade systeminformation to version 5.6.4 or higher.

<5.6.4
  • M
Server-side Request Forgery (SSRF)

systeminformation is a simple system and OS information library.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the sanitizeShellString function due to not sanitising @ properly.

How to fix Server-side Request Forgery (SSRF)?

Upgrade systeminformation to version 5.3.4 or higher.

<5.3.4
  • H
Command Injection

systeminformation is a simple system and OS information library.

Affected versions of this package are vulnerable to Command Injection. It is possible to send an array instead of string, which bypasses the sanitizer.

How to fix Command Injection?

Upgrade systeminformation to version 4.34.11, 5.3.1 or higher.

<4.34.11 >=5.0.0 <5.3.1
  • M
Denial of Service (DoS)

systeminformation is a simple system and OS information library.

Affected versions of this package are vulnerable to Denial of Service (DoS). By leveraging the inetLatency() function, it is possible to execute a ping command that would run for a long time, leading to denial of service.

How to fix Denial of Service (DoS)?

Upgrade systeminformation to version 4.34.10 or higher.

<4.34.10