Deno interactive permission prompt spoofing via improper ANSI stripping
denoland deno
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| deno crates.io |
|
|
| deno_runtime crates.io |
|
|
denoland deno
| Product | Affected | Fixed in |
|---|---|---|
| deno crates.io |
|
|
| deno_runtime crates.io |
|
|
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.
From the CVE record · GitHub_M
A malicious Deno program can insert a broken ANSI escape sequence into a permission request to make the interactive prompt show the wrong file path or program name. The permissions granted still reflect the unmodified request, so exploitation requires a user to run the program and respond to its prompt.
Check installations using crates.io deno versions >=1.32.1 <1.41.0 or deno_runtime versions >=0.103.0 <0.147.0.