Deno interactive permission prompt spoofing via improper ANSI stripping
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
denocrates.io | >= 1.32.1, < 1.41.0 | 1.41.0 |
deno_runtimecrates.io | >= 0.103.0, < 0.147.0 | 0.147.0 |
Affected products
3- ghsa-coords2 versions
>= 1.32.1, < 1.41.0+ 1 more
- (no CPE)range: >= 1.32.1, < 1.41.0
- (no CPE)range: >= 0.103.0, < 0.147.0
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-m4pq-fv2w-6hrwghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-27936ghsaADVISORY
- github.com/denoland/deno/commit/78d430103a8f6931154ddbbe19d36f3b8630286dghsax_refsource_MISCWEB
- github.com/denoland/deno/commit/7e6b94231290020b55f1d08fb03ea8132781abc5ghsax_refsource_MISCWEB
- github.com/denoland/deno/security/advisories/GHSA-m4pq-fv2w-6hrwghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.