GitHub Advisory Database
GHSA-63m4-fhf2-cmf7
Command Execution in windows-cpu
Details
Version of windows-cpu before 0.1.5 will execute arbitrary code passed into the first argument of the findLoad method, resulting in remote code execution.
Proof of Concept
var win = require('windows-cpu');
wind.findLoad('foo & calc.exe');
Recommendation
Update to version 0.1.5 or later.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | windows-cpu | All versions before 0.1.5 (fixed in 0.1.5) |