CVE-2022-25926 window-control vulnerable to Command Injection due to improper input sanitization
Attackers can execute arbitrary commands via the sendKeys function in the window-control npm library due to improper input sanitization.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-25926?
CVE-2022-25926 is a high-severity command injection vulnerability in window-control, published on 4 Jan 2023. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Versions of the package window-control before 1.4.5 are vulnerable to Command Injection via the sendKeys function, due to improper input sanitization.
Which versions are affected by CVE-2022-25926?
2 open source packages ship an affected version, including window-control. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
window-control npm | All versions | 1.4.5 |
window-control npm | All versions | 1.4.5 |
Products include Window-Control Project Window-Control.
How do I fix CVE-2022-25926?
Upgrade window-control to 1.4.5 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-25926 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25926 exists.
Sources
Also known as GHSA-9mjx-wfqp-j5ph.