CVE-2025-55294 Command Injection via `format` option in screenshot-desktop
CriticalCVSS 9.8
EPSS 1.4%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm screenshot-desktop(npm) | < 1.15.2 | 1.15.2 | Fixed |
| bencevans screenshot-desktop | = < 1.15.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm screenshot-desktop(npm) | < 1.15.2 | 1.15.2 |
| bencevans screenshot-desktop | = < 1.15.2 | No fix listed |
References
- https://github.com/bencevans/screenshot-desktop/security/advisories/GHSA-gjx4-2c7g-fm94 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/bencevans/screenshot-desktop/commit/59c87b0c175eec76090e6ccde313f4fc5d569b78 patch
- github.com
- github.com product