Command Injection Affecting systeminformation package, versions <5.31.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.05% (14th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-SYSTEMINFORMATION-15316031
  • published19 Feb 2026
  • disclosed18 Feb 2026
  • creditSandeep V

Introduced: 18 Feb 2026

NewCVE-2026-26318  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade systeminformation to version 5.31.0 or higher.

Overview

systeminformation is a simple system and OS information library.

Affected versions of this package are vulnerable to Command Injection via the versions() function, which executes a locate command to find a PostgreSQL installation on Linux. An attacker who can write files to the target filesystem can execute arbitrary commands with the privileges of the running process by planting a file whose name contains shell metacharacters. The attacker must have sufficient permissions to write files in directories indexed by updatedb.

References

CVSS Base Scores

version 4.0
version 3.1