CVE-2026-49402 Deno: Command Injection via spawnSync & spawn on Windows
- 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. Prior to 2.7.10, Deno's node:child_process implementation provided an escapeShellArg() helper used when callers passed shell: true to spawn / spawnSync / exec and friends. On Windows, the helper failed to quote arguments that contained cmd.exe metacharacters and did not neutralize % (which cmd.exe expands even inside double-quoted strings). An attacker who controlled any portion of an argument passed to such a call could inject arbitrary additional commands into the spawned cmd.exe invocation. This vulnerability is fixed in 2.7.10.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io deno(crates.io) | < 2.7.10 | 2.7.10 | Fixed |
| deno | < 2.7.10 | 2.7.10 | Fixed |
| denoland deno | = < 2.7.10 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io deno(crates.io) | < 2.7.10 | 2.7.10 |
| denoland deno | = < 2.7.10 | No fix listed |
| deno | < 2.7.10 | 2.7.10 |
References
- https://github.com/denoland/deno/security/advisories/GHSA-7xh3-mhg9-jcw8 exploit mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com