Command Injection Affecting deno package, versions <2.7.10


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.28% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-DENO-17660654
  • published27 Jun 2026
  • disclosed16 Jun 2026
  • creditUnknown

Introduced: 16 Jun 2026

NewCVE-2026-49402  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade deno to version 2.7.10 or higher.

Overview

deno is an a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust.

Affected versions of this package are vulnerable to Command Injection via the escapeShellArg process in Windows when using child_process with shell: true. An attacker can execute arbitrary commands and potentially leak environment variables by supplying specially crafted input containing cmd.exe metacharacters or environment variable references to the arguments passed to the process. This is only exploitable if the process is run on Windows and shell: true is set in the options.

Workaround

This vulnerability can be mitigated by avoiding the use of shell: true in node:child_process calls on Windows, building the argument vector directly and invoking the program without a shell, or filtering/rejecting externally-supplied argument values that contain cmd.exe metacharacters (& | < > ^ ! ( ) %) before passing them to spawn, spawnSync, or exec.

CVSS Base Scores

version 4.0
version 3.1