{"id":"CVE-2024-27936","published":"2024-03-06T21:05:59Z","modified":"2024-08-02T00:41:55Z","title":"Deno interactive permission prompt spoofing via improper ANSI stripping","vendor":"denoland","product":"deno","tier":"tail","description":{"text":"Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults. Starting in version 1.32.1 and prior to version 1.41.0 of the deno library, maliciously crafted permission request can show the spoofed permission prompt by inserting a broken ANSI escape sequence into the request contents. Deno is stripping any ANSI escape sequences from the permission prompt, but permissions given to the program are based on the contents that contain the ANSI escape sequences. Any Deno program can spoof the content of the interactive permission prompt by inserting a broken ANSI code, which allows a malicious Deno program to display the wrong file path or program name to the user. Version 1.41.0 of the deno library contains a patch for the issue.","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.01045,"percentile":0.63418,"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-m4pq-fv2w-6hrw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/denoland/deno/commit/78d430103a8f6931154ddbbe19d36f3b8630286d","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/commit/7e6b94231290020b55f1d08fb03ea8132781abc5","tags":["x_refsource_MISC"]}],"priority":{"score":18.8,"factors":[{"name":"EPSS percentile","points":12.68},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"denoland","affectedVersions":[{"vendor":"denoland","product":"deno","versions":[">= 1.32.1, < 1.41.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-09T20:24:15.593823Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"deno","vulnerableRanges":[">=1.32.1, <1.41.0"],"patched":["1.41.0"],"from":["GHSA-m4pq-fv2w-6hrw"],"provenance":"source"},{"ecosystem":"crates.io","package":"deno_runtime","vulnerableRanges":[">=0.103.0, <0.147.0"],"patched":["0.147.0"],"from":["GHSA-m4pq-fv2w-6hrw"],"provenance":"source"}],"summary":{"text":"The flaw is in the interactive permission prompt of Deno, a JavaScript, TypeScript, and WebAssembly runtime: ANSI escape sequences are stripped from the prompt display, but the permissions granted are based on the unstripped content, so a crafted broken ANSI sequence can make the prompt show a spoofed file path or program name (affecting versions from 1.32.1 before 1.41.0). An attacker who can run a malicious Deno program needs only network access and no authentication, but exploitation requires user interaction, since the victim must approve the spoofed permission request.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:36Z"},"euvd":{"id":"EUVD-2024-0957","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-27933","published":"2024-03-06","fixed":"1.39.1","kev":false},{"cve":"CVE-2024-27934","published":"2024-03-06","fixed":"1.40.3","kev":false},{"cve":"CVE-2024-27932","published":"2024-03-06","fixed":"1.40.4","kev":false,"link":{"from":"CVE-2024-27932","to":"CVE-2024-27936","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"1.40.4","toFixed":"1.41.0","daysApart":0}]}},{"cve":"CVE-2024-27936","published":"2024-03-06","fixed":"1.41.0","kev":false},{"cve":"CVE-2024-27931","published":"2024-03-05","fixed":"1.41.1","kev":false,"link":{"from":"CVE-2024-27936","to":"CVE-2024-27931","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"1.41.0","toFixed":"1.41.1","daysApart":-1}]}},{"cve":"CVE-2024-34346","published":"2024-05-07","fixed":"1.43.1","kev":false},{"cve":"CVE-2025-21620","published":"2025-01-06","fixed":"2.1.2","kev":false}],"package":"crates.io:deno"}}