CVE-2026-49402 Details
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.
A command injection vulnerability exists in Deno versions prior to 2.7.10, specifically within the 'node:child_process' module. When the 'shell' option is set to true for functions like 'spawn', 'spawnSync', or 'exec', the 'escapeShellArg()' helper is used to sanitize arguments. However, on Windows, this helper fails to properly quote arguments containing 'cmd.exe' metacharacters, such as '&', '|', '<', '>', '^', '!', '(', ')', and does not neutralize '%' (which 'cmd.exe' expands even within double quotes). As a result, an attacker could inject arbitrary commands into the 'cmd.exe' invocation. This vulnerability allows for unauthorized command execution in the context of the Deno process.
Users can upgrade to Deno version 2.7.10 or later, where this vulnerability is fixed. Alternatively, avoid using 'shell: true' in 'node:child_process' calls on Windows, or filter out any argument values that contain 'cmd.exe' metacharacters before passing them to 'spawn', 'spawnSync', or 'exec'.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 24, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/denoland/deno/security/advisories/GHSA-7xh3-mhg9-jcw8 | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/denoland/deno/security/advisories/GHSA-7xh3-mhg9-jcw8 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| deno deno | < 2.7.10 |
CPE
Remediation
| |
| microsoft windows | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 26, 2026 | Initial Analysis | [email protected] |
| Jun 25, 2026 | CVE Modified | CISA-ADP |
| Jun 23, 2026 | New CVE Received | [email protected] |
| Jun 23, 2026 | CVE Modified | CISA-ADP |