CVE-2025-55294
JavaScript vulnerability analysis and mitigation

Overview

The screenshot-desktop library contains a critical command injection vulnerability (CVE-2025-55294) discovered on August 19, 2025. The vulnerability affects versions prior to 1.15.2 and allows capturing screenshots of local machines. When user-controlled input is passed into the format option of the screenshot function, it is interpolated into a shell command without proper sanitization, potentially leading to arbitrary command execution with the privileges of the calling process (GitHub Advisory).

Technical details

The vulnerability stems from insufficient input validation in the format option parameter. An attacker can craft malicious input such as { format: "; echo vulnerable > /tmp/hello;" } which gets directly interpolated into shell commands without proper sanitization. The vulnerability has been assigned a CVSS v3.1 Base Score of 9.8 (Critical) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, indicating network attack vector, low attack complexity, no privileges required, and no user interaction needed (GitHub Advisory).

Impact

The vulnerability can lead to full compromise of confidentiality, integrity, and availability of affected systems. 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. Any application that accepts untrusted input and forwards it directly or indirectly into the format option is affected (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 1.15.2. Users are strongly recommended to upgrade to version 1.15.2 or later. If immediate upgrading is not possible, developers should implement workarounds such as strictly validating or whitelisting acceptable format values (e.g., "jpeg", "png", "webp"), rejecting or sanitizing any unexpected input before passing it to the library, and avoiding allowing user-controlled data to reach the format option (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management