7.5high
Interactive permission prompt spoofing in Deno
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.62% (higher than 44% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-mc52-jpm2-cqh6
Description
Deno is a runtime for JavaScript and TypeScript that uses V8 and is built in Rust. Multi-threaded programs were able to spoof interactive permission prompt by rewriting the prompt to suggest that program is waiting on user confirmation to unrelated action. A malicious program could clear the terminal screen after permission prompt was shown and write a generic message. This situation impacts users who use Web Worker API and relied on interactive permission prompt. The reproduction is very timing sensitive and can’t be reliably reproduced on every try. This problem can not be exploited on systems that do not attach an interactive prompt (for example headless servers). The problem has been fixed in Deno v1.29.3; it is recommended all users update to this version. Users are advised to upgrade. Users unable to upgrade may run with --no-prompt flag to disable interactive permission prompts.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| denoland deno | >= 1.9, < 1.29.3 | CVE List |
| deno (crates.io) | from 1.9.0 before 1.29.3 | GitHub Advisory Database |
| deno deno | from 1.9.0 before 1.29.3 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
Deno is a runtime for JavaScript and TypeScript that uses V8 and is built in Rust. Multi-threaded programs were able to spoof interactive permission prompt by rewriting the prompt to suggest that program is waiting on user confirmation to unrelated action. A malicious program could clear the terminal screen after permission prompt was shown and write a generic message. This situation impacts users who use Web Worker API and relied on interactive permission prompt. The reproduction is very timing sensitive and can’t be reliably reproduced on every try. This problem can not be exploited on systems that do not attach an interactive prompt (for example headless servers). The problem has been fixed in Deno v1.29.3; it is recommended all users update to this version. Users are advised to upgrade. Users unable to upgrade may run with --no-prompt flag to disable interactive permission prompts.
GitHub Advisory Database
Impact
Multi-threaded programs were able to spoof interactive permission prompt by rewriting the prompt to suggest that program is waiting on user confirmation to unrelated action.
A malicious program could clear the terminal screen after permission prompt was shown and write a generic message like so:
// Expected prompt
⚠️ ┌ Deno requests read access to "./log.txt".
├ Requested by `Deno.open()` API
├ Run again with --allow-read to bypass this prompt.
└ Allow? [y/n] (y = yes, allow; n = no, deny) >
// Prompt that users would see
Do you want to continue?
This situation impacts users who use Web Worker API and relied on interactive permission prompt. The reproduction is very timing sensitive and can’t be reliably reproduced on every try.
This problem can not be exploited on systems that do not attach an interactive prompt (for example headless servers).
Patches
The problem has been fixed in Deno v1.29.3; it is recommended all users update to this version.
Workarounds
Run with --no-prompt flag to disable interactive permission prompts.
NVD (es)
Deno es un tiempo de ejecución para JavaScript y TypeScript que usa V8 y está integrado en Rust. Los programas multiproceso pudieron falsificar el mensaje de permiso interactivo reescribiéndolo para sugerir que el programa está esperando la confirmación del usuario para una acción no relacionada. Un programa malicioso podría borrar la pantalla del terminal después de que se mostrara la solicitud de permiso y escribir un mensaje genérico. Esta situación afecta a los usuarios que utilizan Web Worker API y dependen de la solicitud de permiso interactiva. La reproducción es muy sensible al tiempo y no se puede reproducir de forma fiable en cada intento. Este problema no se puede explotar en sistemas que no adjuntan un mensaje interactivo (por ejemplo, servidores sin cabeza). El problema se solucionó en Deno v1.29.3; Se recomienda que todos los usuarios actualicen a esta versión. Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar pueden ejecutar el indicador --no-prompt para deshabilitar las solicitudes de permisos interactivos.
References
| https://github.com/denoland/deno/security/advisories/GHSA-mc52-jpm2-cqh6 | exploit, third-party-advisory, web | |
| https://github.com/denoland/deno/pull/17392 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-22499 | advisory | |
| https://github.com/denoland/deno | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-22499 changed 2025-03-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mc52-jpm2-cqh6 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2023-22499 changed 2026-06-17 | Public domain |