Remote Code Execution Vulnerability in Node.js systeminformation Library on Windows
Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Dec 19, 2025

A critical vulnerability has been identified in the systeminformation library for Node.js, specifically affecting Windows systems. The flaw, tracked as CVE-2025-68154, resides in the fsSize() function, which fails to properly sanitize the drive parameter before concatenating it into a PowerShell command. This oversight allows for OS command injection, enabling attackers to execute arbitrary commands on affected systems if user-controlled input is passed to the vulnerable function. The issue is particularly concerning given the library's widespread use, with over 16 million monthly users potentially at risk.
The vulnerability is remotely exploitable and has been addressed in version 5.27.14 of the library. Security researchers emphasize that the actual risk depends on how applications utilize the fsSize() function; if user input is not passed to this function, the risk is mitigated. Organizations using the systeminformation library on Windows are strongly advised to update to the patched version immediately to prevent exploitation and potential compromise of their systems.


