Command Injection via `format` option in screenshot-desktop
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-77.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| bencevans | screenshot-desktop | before 1.15.2 | 1.15.2 | Patch available | CNA |
| — | screenshot-desktop (npm) | before 1.15.2 | 1.15.2 | Patch available | GHSA-gjx4-2c7g-fm94 |
- screenshot-desktop Vendorbencevans Affected before 1.15.2 Fixed in 1.15.2 Patch available CNA
- screenshot-desktop (npm) Vendor— Affected before 1.15.2 Fixed in 1.15.2 Patch available GHSA-gjx4-2c7g-fm94
Remediation
- Fix · CNA screenshot-desktop (bencevans) Fixed in 1.15.2
- Fix · GHSA-gjx4-2c7g-fm94 screenshot-desktop (npm) Fixed in 1.15.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-55294
- 2026-10-03 Alias added: GHSA-gjx4-2c7g-fm94
References
Sources
- CVE-2025-55294 · CVE Program
- CVE-2025-55294 · NVD
- FIRST EPSS
- GHSA-gjx4-2c7g-fm94 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences