Skip to content

CVE-2025-61787 Deno is Vulnerable to Command Injection on Windows During Batch File Execution

HighCVSS 8.1 EPSS 2.2%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

Description

Deno is a JavaScript, TypeScript, and WebAssembly runtime. Versions prior to 2.5.3 and 2.2.15 are vulnerable to Command Line Injection attacks on Windows when batch files are executed. In Windows, CreateProcess() always implicitly spawns cmd.exe if a batch file (.bat, .cmd, etc.) is being executed even if the application does not specify it via the command line. This makes Deno vulnerable to a command injection attack on Windows. Versions 2.5.3 and 2.2.15 fix the issue.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
crates.io deno(crates.io) < 2.5.2 2.5.2 Fixed
deno <= 2.2.15; >= 2.3.0, < 2.5.3 2.5.3 Fixed
denoland deno = < 2.2.15; = >= 2.3.0, < 2.5.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
crates.io deno(crates.io) < 2.5.2 2.5.2
denoland deno = >= 2.3.0, < 2.5.3 No fix listed
denoland deno = < 2.2.15 No fix listed
deno <= 2.2.15 No fix listed
deno >= 2.3.0, < 2.5.3 2.5.3

References