CVE-2024-27936 Deno interactive permission prompt spoofing via improper ANSI stripping

High 8.8 Published Updated

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.

PackageAffectedFixed in
deno crates.ioFrom 1.32.11.41.0
deno crates.ioFrom 1.32.11.41.0
deno_runtime crates.ioFrom 0.103.00.147.0
deno_runtime crates.ioFrom 0.103.00.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.

Sources

Also known as GHSA-m4pq-fv2w-6hrw, JLSEC-2026-105.

Is CVE-2024-27936 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free