{"id":"CVE-2023-28446","published":"2023-03-24T19:46:28Z","modified":"2025-02-19T20:25:29Z","title":"Deno is vulnerable to interactive `run` permission prompt spoofing via improper ANSI neutralization","vendor":"denoland","product":"deno","tier":"tail","description":{"text":"Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust. Arbitrary program names without any ANSI filtering allows any malicious program to clear the first 2 lines of a `op_spawn_child` or `op_kill` prompt and replace it with any desired text. This works with any command on the respective platform, giving the program the full ability to choose what program they wanted to run. This problem can not be exploited on systems that do not attach an interactive prompt (for example headless servers). This issue has been patched in version 1.31.2.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01132,"percentile":0.67232,"provenance":"source"},"cwes":[{"id":"CWE-150","name":"Improper Neutralization of Escape, Meta, or Control Sequences"}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-vq67-rp93-65qf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/denoland/deno/blob/7d13d65468c37022f003bb680dfbddd07ea72173/runtime/js/40_process.js#L175","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/releases/tag/v1.31.2","tags":["x_refsource_MISC"]}],"priority":{"score":19.6,"factors":[{"name":"EPSS percentile","points":13.45},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"denoland","affectedVersions":[{"vendor":"denoland","product":"deno","versions":[">= 1.8.0, < 1.31.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-02-19T20:25:24.688238Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"deno_runtime","vulnerableRanges":[">=1.8.0, <1.31.2"],"patched":["1.31.2"],"from":["GHSA-vq67-rp93-65qf"],"provenance":"source"},{"ecosystem":"crates.io","package":"deno","vulnerableRanges":[">=1.8.0, <1.31.2"],"patched":["1.31.2"],"from":["GHSA-vq67-rp93-65qf"],"provenance":"source"}],"summary":{"text":"Deno, a JavaScript and TypeScript runtime built in Rust, contains a flaw in its interactive permission prompts for spawning child processes and killing processes (op_spawn_child and op_kill), because program names are not filtered for ANSI control sequences. An attacker who can get a malicious program to run under Deno, with user interaction required and an interactive prompt attached (headless servers are not affected), can clear the first two lines of the prompt and substitute misleading text, so the user approves a different command than the one actually requested.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:43Z"},"euvd":{"id":"EUVD-2023-1121","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-24783","published":"2022-03-25","fixed":"1.20.3","kev":false},{"cve":"CVE-2023-22499","published":"2023-01-17","fixed":"1.29.3","kev":false},{"cve":"CVE-2023-26103","published":"2023-02-25","fixed":"1.31.0","kev":false,"link":{"from":"CVE-2023-26103","to":"CVE-2023-28446","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"1.31.0","toFixed":"1.31.2","daysApart":27}]}},{"cve":"CVE-2023-28446","published":"2023-03-24","fixed":"1.31.2","kev":false},{"cve":"CVE-2023-33966","published":"2023-05-31","fixed":"1.34.1","kev":false},{"cve":"CVE-2024-27935","published":"2024-03-06","fixed":"1.36.3","kev":false},{"cve":"CVE-2024-27933","published":"2024-03-06","fixed":"1.39.1","kev":false}],"package":"crates.io:deno"}}