Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Arbitrary Command Injection vulnerabilities in an interactive lesson.
Start learningUpgrade deno_process to version 0.35.0 or higher.
deno_process is an implementation of subprocess APIs for Deno
Affected versions of this package are vulnerable to Arbitrary Command Injection when executing batch files on Windows. An attacker can execute arbitrary commands by supplying specially crafted input that is processed by the Windows CreateProcess function, e.g., through node:child_process or Deno.Command.spawn().
Note:
This is caused by an incomplete fix for CVE-2025-61787.
const command = new Deno.Command('./test.BAT', {
args: ['&calc.exe'],
});
const child = command.spawn();