GHSA-63m4-fhf2-cmf7
Command Execution in windows-cpu
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | windows-cpu | < 0.1.5 | 0.1.5 |
Details
As written in the advisory (Markdown source, shown as plain text).
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
```js
var win = require('windows-cpu');
wind.findLoad('foo & calc.exe');
```
## Recommendation
Update to version 0.1.5 or later.
References
External links from the advisory. They lead to third-party sites.