CVE-2024-27936

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.

Severity
HIGH
CVSS v3
8.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H · source cna
Exploit chance (EPSS)
0.943%
chance of exploitation in the next 30 days
higher than 61.6% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationpoc
Automatableno
Technical impactpartial
Scored2024-07-09

Timeline

  1. 2024-03-05GitHub advisory published (GHSA-m4pq-fv2w-6hrw)1 day before publication
  2. 2024-03-06Published by the CNA21:05 UTC
  3. 2024-07-09CISA SSVC decision recorded125 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-m4pq-fv2w-6hrw, affected packages:

PackageVulnerable versionsFixed in
crates.io denofrom 1.32.1 before 1.41.01.41.0
crates.io deno_runtimefrom 0.103.0 before 0.147.00.147.0

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
deno denofrom 1.32.1 before 1.41.0fixed in 1.41.01.41.0
deno deno_runtimefrom 0.103.0 before 0.147.0fixed in 0.147.00.147.0

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources