CVE-2025-55294: Command Injection via `format` option in screenshot-desktop

Published Aug 19, 2025
·
Updated

Impact 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. An attacker can craft malicious input such as:

{ format: "; echo vulnerable > /tmp/hello;" }

This results in arbitrary command execution with the privileges of the calling process.

Who is impacted: Any application that accepts untrusted input and forwards it directly (or indirectly) into the format option is affected. If the library is used in a server-side context (e.g., API endpoints, web services), attackers may be able to exploit this remotely and without authentication, leading to full compromise of confidentiality, integrity, and availability.

CVSS v3.1 Base Score: 9.8 (Critical) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Patches The issue has been patched in version 1.15.2. All users are strongly recommended to upgrade to 1.15.2 or later. All earlier versions are vulnerable.

Workarounds If upgrading is not immediately possible, developers should: - Strictly validate or whitelist acceptable format values (e.g., "jpeg", "png", "webp"). - Reject or sanitize any unexpected input before passing it to the library. - Avoid allowing user-controlled data to reach the format option.

References - CWE-78: OS Command Injection - OWASP: Command Injection

Other sources

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.

MITRE

Affected Software

2 affected componentsFixes available
screenshot-desktop screenshot-desktop<1.15.2
npm/screenshot-desktop<1.15.2
1.15.2

Event History

Aug 19, 2025
CVE Published
via MITRE·05:34 PM
Data Sourced
via MITRE·05:34 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·08:17 PM
Data Sourced
via GitHub·08:17 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-55294?

CVE-2025-55294 has been rated as a high-severity vulnerability due to its potential for command injection and remote code execution.

2

How do I fix CVE-2025-55294?

To fix CVE-2025-55294, update the screenshot-desktop software to version 1.15.2 or later.

3

What causes CVE-2025-55294?

CVE-2025-55294 is caused by unsanitized user input being passed into a shell command within the screenshot function.

4

Who is affected by CVE-2025-55294?

CVE-2025-55294 affects users of the screenshot-desktop software versions prior to 1.15.2.

5

What are the implications of CVE-2025-55294?

The implications of CVE-2025-55294 include unauthorized code execution on the affected system if exploited.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203