CVE-2026-49402: Command Injection in Deno node:child_process on Windows
- Vendor
- Deno
CVE-2026-49402 is a command injection vulnerability in Deno affecting versions prior to 2.7.10. The flaw is in Deno's node:child_process implementation on Windows, specifically in the escapeShellArg() helper used when applications call spawn, spawnSync, exec, and related APIs with shell: true. The helper did not correctly quote arguments containing cmd.exe metacharacters and did not neutralize percent signs, which cmd.exe expands even inside double-quoted strings. If an attacker can control any portion of an argument passed to one of these shell-backed process creation calls, they can inject additional commands into the cmd.exe invocation. The issue is limited to Windows shell execution paths that rely on this escaping behavior.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows arbitrary command execution in the security context of the Deno process. Because injected commands are executed by cmd.exe, an attacker may be able to run additional system commands, alter program behavior, access or expose sensitive data available to the process, and affect integrity or availability of the host or application workflow. The available severity information indicates high impact to confidentiality, integrity, and availability.
Mitigation
If you can’t patch tonight, do this now.
Until patched, avoid using shell: true with node:child_process APIs on Windows when any argument may contain externally influenced data. Prefer direct process invocation without a shell and construct argv explicitly. Additionally, validate, constrain, or reject untrusted argument content that may contain cmd.exe metacharacters or percent-based expansion syntax.
Remediation
Patch, then assume compromise.
Upgrade Deno to version 2.7.10 or later, which fixes the Windows argument escaping flaw in node:child_process. Review application code that uses spawn, spawnSync, exec, or related APIs with shell: true and remove unnecessary shell invocation where possible. Where shell execution is required, ensure argument construction does not rely on vulnerable escaping behavior in affected versions.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-49402 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-49402 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-49402?
- Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2026-49402.
- Is there a patch for CVE-2026-49402?
- Upgrade Deno to version 2.7.10 or later, which fixes the Windows argument escaping flaw in node:child_process. Review application code that uses spawn, spawnSync, exec, or related APIs with shell: true and remove unnecessary shell invocation where possible.
- What products are affected by CVE-2026-49402?
- Deno.
- How severe is CVE-2026-49402?
- CVE-2026-49402 has a CVSS v3.1 score of 8.1 (High) and an EPSS score of 0.45% (31st percentile) as of Sep 25, 2026.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.