Skip to content

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

MediumCVSS 6.5 EPSS 0.94%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

5 packages: 4 fixed.

PackageAffectedFixed inStatus
crates.io deno(crates.io) >= 1.32.1, < 1.41.0 1.41.0 Fixed
crates.io deno_runtime(crates.io) >= 0.103.0, < 0.147.0 0.147.0 Fixed
deno >= 1.32.1, < 1.41.0 1.41.0 Fixed
deno runtime >= 0.103.0, < 0.147.0 0.147.0 Fixed
denoland deno = >= 1.32.1, < 1.41.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
crates.io deno(crates.io) >= 1.32.1, < 1.41.0 1.41.0
crates.io deno_runtime(crates.io) >= 0.103.0, < 0.147.0 0.147.0
denoland deno = >= 1.32.1, < 1.41.0 No fix listed
deno >= 1.32.1, < 1.41.0 1.41.0
deno runtime >= 0.103.0, < 0.147.0 0.147.0

References