Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-32260

Deno vulnerable to command Injection via incomplete shell metacharacter blocklist in node:child_process
Back to all
CVE

CVE-2026-32260

Deno vulnerable to command Injection via incomplete shell metacharacter blocklist in node:child_process

Summary

  A command injection vulnerability exists in Deno's node:child_process polyfill (shell: true mode) that bypasses the fix

  for CVE-2026-27190 (GHSA-hmh4-3xvx-q5hr). An attacker who controls arguments passed to spawnSync or spawn with `shell:

  true` can execute arbitrary OS commands, bypassing Deno's permission system.

  Affected versions: Deno v2.7.0, v2.7.1

  ## Details

  The two-stage argument sanitization in transformDenoShellCommand (ext/node/polyfills/internal/child_process.ts) has a

  priority bug: when an argument contains a $VAR pattern, it is wrapped in double quotes (L1290) instead of single quotes

  (L1293). Double quotes in POSIX sh do not suppress backtick command substitution, allowing injected commands to execute.

  Attack chain:

  1. escapeShellArg wraps the argument in single quotes (safe)
  2. opnodeparseshellargs strips the single-quote delimiters during tokenization (raw argument exposed)
  3. Re-quoting detects $VAR pattern → applies double quotes
  4. Backtick payload inside double quotes executes via /bin/sh

  ## Impact

  OS Command Injection (CWE-78). Any application using node:child_process spawn/spawnSync with shell: true and

  user-controlled arguments is vulnerable. Injected commands execute at the OS process level, outside Deno's permission

  sandbox. Only --allow-run is required.

  ## Mitigation

  Avoid passing user-controlled input as arguments to spawn/spawnSync with shell: true. Use shell: false (the default)

  instead, or validate/sanitize inputs before passing them.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
8.1
-
3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
-

Related Resources

No items found.

References

https://github.com/denoland/deno/security/advisories/GHSA-4c96-w8v2-p28j, https://nvd.nist.gov/vuln/detail/CVE-2026-32260, https://github.com/denoland/deno

Severity

8.1

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
8.1
EPSS Probability
0.00119%
EPSS Percentile
0.3029%
Introduced Version
2.7.0
Fix Available
2.7.2

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading