-
CVSS Score
-| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| window-control | npm | < 1.4.5 | 1.4.5 |
The vulnerability stems from the sendKeys function in index.js where user-controlled inputs (id and keys) were directly interpolated into shell commands via exec() without proper sanitization. The GitHub patch adds a sanitiseUserInput function and applies it to these parameters, confirming they were the injection vectors. The CVE description explicitly cites sendKeys as the entry point, and the commit diff shows vulnerable command construction patterns for darwin/win32/linux platforms within this function.