CVE-2024-27936
MEDIUM 6.5CVSS 3.1Deno's deno_runtime vulnerable to interactive permission prompt spoofing via improper ANSI stripping
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.
- Published
- 21 Mar 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-150
- Also known as
- GHSA-m4pq-fv2w-6hrw
- Sources
- NVDJSONOSV GHSA-m4pq-fv2w-6hrwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | deno | denocpe:2.3:a:deno:deno:*:*:*:*:*:*:*:* |
>= 1.32.1, < 1.41.0 | 1.41.0 |
| NVD | deno | deno_runtimecpe:2.3:a:deno:deno_runtime:*:*:*:*:*:rust:*:* |
>= 0.103.0, < 0.147.0 | 0.147.0 |
| OSV | crates.io | deno | >= 1.32.1, < 1.41.0 | 1.41.0 |
| OSV | crates.io | deno_runtime | >= 0.103.0, < 0.147.0 | 0.147.0 |
References
- https://github.com/denoland/deno/commit/78d430103a8f6931154ddbbe19d36f3b8630286d · Patch, WEB
- https://github.com/denoland/deno/commit/7e6b94231290020b55f1d08fb03ea8132781abc5 · Patch, WEB
- https://github.com/denoland/deno/security/advisories/GHSA-m4pq-fv2w-6hrw · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-27936 · ADVISORY
- https://github.com/denoland/deno · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 21 Mar 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Mar 2024)