Command Injection Affecting systeminformation package, versions <5.27.14


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.06% (20th 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-14459105
  • published17 Dec 2025
  • disclosed16 Dec 2025
  • creditYue (Knox) Liu

Introduced: 16 Dec 2025

CVE-2025-68154  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade systeminformation to version 5.27.14 or higher.

Overview

systeminformation is a simple system and OS information library.

Affected versions of this package are vulnerable to Command Injection via the fsSize function when the drive parameter is concatenated into a PowerShell command without proper sanitization. An attacker can execute arbitrary commands on the underlying Windows system by supplying crafted input to the drive parameter.

##Workaround

This vulnerability could be mitigated by applying util.sanitizeShellString() to the drive parameter, consistent with other functions in the codebase.

References

CVSS Base Scores

version 4.0
version 3.1