Arbitrary Command Injection Affecting screenshot-desktop package, versions <1.15.2


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-SCREENSHOTDESKTOP-12028632
  • published20 Aug 2025
  • disclosed19 Aug 2025
  • creditRichard Tweed

Introduced: 19 Aug 2025

NewCVE-2025-55294  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade screenshot-desktop to version 1.15.2 or higher.

Overview

screenshot-desktop is a Capture a screenshot of your local machine

Affected versions of this package are vulnerable to Arbitrary Command Injection via the format option in the Snapshot functions. An attacker can execute arbitrary commands with the privileges of the calling process by supplying crafted input to this option.

PoC

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

References

CVSS Base Scores

version 4.0
version 3.1