npm package report

Is screenshot-desktop safe?

Version 1.16.0 of screenshot-desktop was compromised. Other versions are not flagged as malicious.

Do not install screenshot-desktop 1.16.0

CRITICAL

Compromised releases. Added to CyberXYZ 2026-11-04, OSV malicious-package feed (Google / OpenSSF).

// what we observed

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Reported by GitHub Advisory Database via OSV.

// versions and what to do
Malicious
1.16.0
Move to
1.15.8 newest 1.x release, no known advisory

If one of these versions was installed, remove it and treat the credentials, tokens and SSH keys on that machine as exposed: rotate them. Check CI runners and container images that installed it too.

npm install screenshot-desktop@1.15.8

OSV recordadvisory

// reach

0 direct dependencies

none carry a known advisory

    0 packages depend on it

    an advisory here reaches each of them

      Create a free accountfor every dependency path, dependent and what to upgrade
      // ai model usage

      Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.


      cvss
      9.8
      critical

      CVSS v3.1 base score out of 10

      epss
      1.4%
      medium

      chance of exploitation in 30 days, 73rd percentile of all CVEs

      xyz score
      4.0
      medium

      CyberXYZ composite out of 10

      fig. 01 — GHSA-gjx4-2c7g-fm94, the advisory selected below

      // 1 advisories

      GHSA-gjx4-2c7g-fm94

      CRITICALGitHub ratingCVE-2025-55294
      // 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
      // cvss v3.1 vector

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

      Attack vector
      Network
      Attack complexity
      Low
      Privileges required
      None
      User interaction
      None
      Scope
      Unchanged
      Confidentiality
      High
      Integrity
      High
      Availability
      High

      Checked 2026-11-08 at 12:01 UTC. The most recent advisory here was published 2025-08-19. Updated continuously from NVD, GHSA, OSV and CNA feeds.

      Think a verdict here is wrong? Tell us — we respond within 2 business days.