Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilityproof-of-concept-releasewidely-deployed-product-advisory

Deno Windows `child_process` Flaw Enables Command Injection via `shell: true`

Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Jun 23, 2026

Deno Windows `child_process` Flaw Enables Command Injection via `shell: true`

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.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · May 27, 2026 – Jun 23, 2026
  1. Jun 23, 20265mo ago

    Deno 2.7.10 fixes CVE-2026-49402

    The vulnerability was fixed in Deno version 2.7.10, addressing command injection on Windows in versions prior to 2.7.10. Users were advised to upgrade and avoid using shell: true with user-controlled input.

    CVE-2026-49402 - Deno: Command Injection via spawnSync & spawn on Windows
  2. May 27, 20266mo ago

    Deno discloses Windows command injection vulnerability

    Deno disclosed a command injection flaw in its Windows node:child_process implementation when shell: true was used with spawn, spawnSync, exec, and related APIs. The advisory described improper handling of cmd.exe metacharacters in escapeShellArg() and included a proof of concept showing calc.exe being launched via a crafted argument.

    Command Injection via spawnSync & spawn on Windows · Advisory · denoland/deno · GitHub
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Deno

Organizations

1 linked
Deno
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.