CVE-2017-1000219: Command Execution in windows-cpu

windows-cpu Updated 02 Oct 2025

Summary

01/09/2020
Yes i
Critical
9.8

CVE-2017-1000219: Command Execution in windows-cpu. Affects windows-cpu versions < 0.1.5. Fixed in 0.1.5. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The windows-cpu package is an npm package that provides functionality for monitoring CPU usage on Windows systems. It allows users to retrieve information about CPU load and usage. The package is commonly used in Windows-based applications to monitor system performance. However, versions prior to 0.1.5 of windows-cpu are vulnerable to command execution, which can lead to remote code execution.

Vulnerability Detail

The vulnerability in windows-cpu version before 0.1.5 arises from the insecure handling of user input. Specifically, the findLoad method does not properly sanitize the first argument, allowing arbitrary code execution. An attacker can exploit this vulnerability by passing malicious code as the first argument to the findLoad method. This can result in the execution of arbitrary commands on the target system, potentially leading to remote code execution. The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.8.

How To Fix

Latest published version: 1.1.0 as of 22 Oct 2026

npm install windows-cpu@1.1.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.1.5

This is the first release that contains the fix.

npm install windows-cpu@0.1.5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid passing user-controlled input to the findLoad method. By ensuring that only trusted and sanitized input is used as the argument, the risk of command execution can be mitigated. Here is an example of how to use the findLoad method with sanitized input:

var win = require('windows-cpu');
var sanitizedInput = sanitizeInput(userInput); // Implement your own input sanitization
win.findLoad(sanitizedInput);

Conclusion

The windows-cpu package prior to version 0.1.5 is vulnerable to command execution, which can lead to remote code execution. It is crucial to update to version 0.1.5 or later to mitigate the risk. By updating the package, you ensure that user input is properly sanitized and prevent potential unauthorized access or compromise of your system. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for windows-cpu →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary commands on the target system, potentially leading to remote code execution. This can result in unauthorized access, data theft, or further compromise of the system.

While a proof of concept is provided in the vulnerability details, there is no known public exploit available at this time. However, it is important to address this vulnerability promptly to prevent potential exploitation.

No, only versions prior to 0.1.5 of windows-cpu are affected by this vulnerability. It is recommended to update to version 0.1.5 or later to mitigate the risk.

Yes, the vulnerability has been fixed in version 0.1.5 of windows-cpu. It is crucial to update to this version or any subsequent versions to ensure the security of your application.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the package-lock.json file.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 1.1.0 as of 22 Oct 2026

npm install windows-cpu@1.1.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.1.5

This is the first release that contains the fix.

npm install windows-cpu@0.1.5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback