Medium severity · published Mar 6, 2024
CVE-2024-27936
Deno interactive permission prompt spoofing via improper ANSI stripping
6.5
CVSS
0.9%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 61% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DE
deno · denoland
>= 1.32.1, < 1.41.0 · source: vendor, NVD, CISA
DR
Deno Runtime · Deno
0.103.0 before 0.147.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-27936
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-27936
Patch
https://github.com/denoland/deno/commit/78d430103a8f6931154ddbbe19d36f3b8630286d
Patch
https://github.com/denoland/deno/commit/7e6b94231290020b55f1d08fb03ea8132781abc5
Exploit
https://github.com/denoland/deno/security/advisories/GHSA-m4pq-fv2w-6hrw
More from deno
9.8
CVE-2026-32260
Command Injection via incomplete shell metacharacter blocklist in node:child_process (bypass of CVE-2026-27190 fix)
9.8
CVE-2026-27190
Deno has a Command Injection via Incomplete shell metacharacter blocklist in node:child_process
9.8
CVE-2026-22864
Deno has an incomplete fix for command-injection prevention on Windows — case-insensitive extension bypass
9.8
CVE-2023-33966
Deno missing "--allow-net" permission check for built-in Node modules
9.8
CVE-2023-28445
Deno improperly handles resizable ArrayBuffer
