# CVE-2024-27936: Deno interactive permission prompt spoofing via improper ANSI stripping

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.94%, higher than 62% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-05T20:54:14.000Z
- Modified: 2026-09-10T03:50:10.601Z
- Also known as: GHSA-m4pq-fv2w-6hrw
- Weaknesses: CWE-150
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- denoland deno: >= 1.32.1, < 1.41.0
- deno deno: from 1.32.1 before 1.41.0
- deno (crates.io): from 1.32.1 before 1.41.0
- deno_runtime (crates.io): from 0.103.0 before 0.147.0
- deno deno_runtime: from 0.103.0 before 0.147.0

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://github.com/denoland/deno/security/advisories/GHSA-m4pq-fv2w-6hrw> (exploit, vendor-advisory, web)
- <https://github.com/denoland/deno/commit/78d430103a8f6931154ddbbe19d36f3b8630286d> (patch, web)
- <https://github.com/denoland/deno/commit/7e6b94231290020b55f1d08fb03ea8132781abc5> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-27936> (advisory)
- <https://github.com/denoland/deno> (package)

## Sources

- CVE List: [CVE-2024-27936](https://www.cve.org/CVERecord?id=CVE-2024-27936), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-m4pq-fv2w-6hrw](https://github.com/advisories/GHSA-m4pq-fv2w-6hrw), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-27936](https://nvd.nist.gov/vuln/detail/CVE-2024-27936), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27936 · Whole record: https://cve.day/CVE-2024-27936.json · Rebuilt by cve.day 2026-11-25T22:58:37.796Z
