Skip to content
OpenAdvisories
Critical · 9.8 CVE-2025-55294 EUVD-2025-25196GHSA-gjx4-2c7g-fm94

Command Injection via `format` option in screenshot-desktop

Published Aug 19, 2025 · Updated Aug 19, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
bencevans screenshot-desktop < 1.15.2 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm screenshot-desktop < 1.15.2 1.15.2 GHSA-gjx4-2c7g-fm94

References