Skip to main content
← All vulnerabilities
CVE-2024-27936GHSA-M4PQ-FV2W-6HRW

Deno interactive permission prompt spoofing via improper ANSI stripping

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.41.0, 0.147.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • denoland deno

    From 1.32.1 · fixed in 1.41.0

  • denocrates.io

    From 1.32.1 · fixed in 1.41.0

  • deno_runtimecrates.io

    From 0.103.0 · fixed in 0.147.0

References 3

GitHub · denoland/deno