CVE-2025-55294 Command Injection via `format` option in screenshot-desktop
Attackers can execute arbitrary commands by injecting malicious input into the format option of the screenshot function in this Node.js library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-55294?
CVE-2025-55294 is a critical command injection vulnerability in bencevans screenshot-desktop, published on 19 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
screenshot-desktop allows capturing a screenshot of your local machine. This vulnerability is a command injection issue. When user-controlled input is passed into the format option of the screenshot function, it is interpolated into a shell command without sanitization. This results in arbitrary command execution with the privileges of the calling process. This vulnerability is fixed in 1.15.2.
Weakness: CWE-77
Which versions are affected by CVE-2025-55294?
2 open source packages ship an affected version, including screenshot-desktop.
| Package | Affected | Fixed in |
|---|---|---|
screenshot-desktop npm | All versions | 1.15.2 |
screenshot-desktop npm | All versions | 1.15.2 |
How do I fix CVE-2025-55294?
Upgrade screenshot-desktop to 1.15.2 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2025-55294 being exploited?
There is no known exploitation of CVE-2025-55294 in the wild and no public exploit code.
Sources
Also known as GHSA-gjx4-2c7g-fm94.