Deno Windows `child_process` Flaw Enables Command Injection via `shell: true`
Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Jun 23, 2026

Deno disclosed a high-severity command injection vulnerability in its Windows implementation of node:child_process, where the escapeShellArg() helper failed to safely handle cmd.exe metacharacters such as &, |, <, >, ^, !, (, ), and %. When applications used shell: true with spawn, spawnSync, exec, and related APIs, attacker-controlled input could break out of the intended argument context and execute arbitrary commands in the security context of the Deno process. A proof of concept showed calc.exe launching on Windows 11 after a crafted argument was passed to spawnSync.
The issue is tracked as CVE-2026-49402 and affects Deno versions prior to 2.7.10 on Windows. The flaw is considered the Windows counterpart to CVE-2026-27190, which addressed the same bug class on Unix-like systems. Deno said deployments are not affected when shell: true is not used, and advised users to upgrade to 2.7.10 and avoid passing untrusted input into shelled subprocess calls.


