Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. systeminformation
  4. ›
  5. CVE-2025-68154

CVE-2025-68154: systeminformation has a Command Injection vulnerability in fsSize() function on Windows

December 16, 2025

The fsSize() function in systeminformation is vulnerable to OS Command Injection (CWE-78) on Windows systems. The optional drive parameter is directly concatenated into a PowerShell command without sanitization, allowing arbitrary command execution when user-controlled input reaches this function.

Affected Platforms: Windows only

CVSS Breakdown:

  • Attack Vector (AV:N): Network - if used in a web application/API
  • Attack Complexity (AC:H): High - requires application to pass user input to fsSize()
  • Privileges Required (PR:N): None - no authentication required at library level
  • User Interaction (UI:N): None
  • Scope (S:U): Unchanged - executes within Node.js process context
  • Confidentiality/Integrity/Availability (C:H/I:H/A:H): High impact if exploited

Note: The actual exploitability depends on how applications use this function. If an application does not pass user-controlled input to fsSize(), it is not vulnerable.


References

  • github.com/advisories/GHSA-wphj-fx3q-84ch
  • github.com/sebhildebrandt/systeminformation
  • github.com/sebhildebrandt/systeminformation/commit/c52f9fd07fef42d2d8e8c66f75b42178da701c68
  • github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-wphj-fx3q-84ch
  • nvd.nist.gov/vuln/detail/CVE-2025-68154

Code Behaviors & Features

Detect and mitigate CVE-2025-68154 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 5.27.14

Fixed versions

  • 5.27.14

Solution

Upgrade to version 5.27.14 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/systeminformation/CVE-2025-68154.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:02 +0000.