CVE-2024-27936 Deno interactive permission prompt spoofing via improper ANSI stripping
Malicious Deno programs can spoof permission prompts via ANSI injection, tricking users into granting unintended access.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-27936?
CVE-2024-27936 is a high-severity vulnerability in denoland deno, published on 6 Mar 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-150
Which versions are affected by CVE-2024-27936?
4 open source packages ship an affected version, including deno and deno_runtime. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
deno crates.io | From 1.32.1 | 1.41.0 |
deno crates.io | From 1.32.1 | 1.41.0 |
deno_runtime crates.io | From 0.103.0 | 0.147.0 |
deno_runtime crates.io | From 0.103.0 | 0.147.0 |
Products include Deno Deno, Deno Deno Runtime.
How do I fix CVE-2024-27936?
Upgrade deno to 1.41.0 or later.
Is CVE-2024-27936 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-27936 exists.
Other vulnerabilities in denoland deno
- CVE-2023-28445 Deno improperly handles resizable ArrayBuffer
- CVE-2022-24783 Sandbox bypass leading to arbitrary code execution in Deno
- CVE-2021-32619 Static imports inside dynamically imported modules do not adhere to permission checks
- CVE-2026-22863 Deno node:crypto doesn't finalize cipher
- CVE-2023-28446 Deno is vulnerable to interactive `run` permission prompt spoofing via improper ANSI neutralization
Sources
Also known as GHSA-m4pq-fv2w-6hrw, JLSEC-2026-105.