Command injection in Deno - CVE-2025-61787

 

Command injection in Deno - CVE-2025-61787

Published: April 23, 2026


Vulnerability identifier: #VU127061
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2025-61787
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Deno Land
Affected software:
Deno

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary commands.

The vulnerability exists due to command injection in batch file execution on Windows when passing user-provided arguments to an executed batch script. A remote attacker can supply a specially crafted argument to execute arbitrary commands.

Exploitation occurs when a child process executes a batch file such as a .bat or .cmd file on Windows.


How to mitigate CVE-2025-61787

Install security update from vendor's website.

Sources