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.
Advisories
Source ID Title
EUVD EUVD EUVD-2024-0957 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.
Github GHSA Github GHSA GHSA-m4pq-fv2w-6hrw Deno's deno_runtime vulnerable to interactive permission prompt spoofing via improper ANSI stripping
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Fri, 03 Jan 2025 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Deno deno Runtime
Weaknesses NVD-CWE-Other
CPEs cpe:2.3:a:deno:deno_runtime:*:*:*:*:*:rust:*:*
Vendors & Products Deno deno Runtime

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2024-08-02T00:41:55.809Z

Reserved: 2024-02-28T15:14:14.217Z

Link: CVE-2024-27936

cve-icon Vulnrichment

Updated: 2024-07-09T20:26:31.151Z

cve-icon NVD

Status : Analyzed

Published: 2024-03-21T02:52:22.813

Modified: 2025-01-03T19:27:46.510

Link: CVE-2024-27936

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.