Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. screenshot-desktop
  4. ›
  5. CVE-2025-55294

CVE-2025-55294: screenshot-desktop vulnerable to command Injection via `format` option

August 19, 2025

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

References

  • github.com/advisories/GHSA-gjx4-2c7g-fm94
  • github.com/bencevans/screenshot-desktop
  • github.com/bencevans/screenshot-desktop/commit/59c87b0c175eec76090e6ccde313f4fc5d569b78
  • github.com/bencevans/screenshot-desktop/security/advisories/GHSA-gjx4-2c7g-fm94
  • nvd.nist.gov/vuln/detail/CVE-2025-55294

Code Behaviors & Features

Detect and mitigate CVE-2025-55294 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.15.2

Fixed versions

  • 1.15.2

Solution

Upgrade to version 1.15.2 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

Source file

npm/screenshot-desktop/CVE-2025-55294.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 23 Aug 2025 00:19:39 +0000.