{"schemaVersion":3,"id":"CVE-2024-27936","aliases":["GHSA-m4pq-fv2w-6hrw"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2024-03-06T21:05:59.251Z","modified":"2024-08-02T00:41:55.809Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00943,"percentile":0.60436,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00943},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00943,"percentile":0.60436}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00943,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00943,"percentile":0.60436}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_DENOLAND_DENO","name":"Deno","source":"github","url":"https://github.com/denoland/deno/issues/12152","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-150","name":"Improper Neutralization of Escape, Meta, or Control Sequences","description":"The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as escape, meta, or control character sequences when they are sent to a downstream component.","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/150.html"}],"affected":[{"vendor":"Crates.Io","product":"deno","name":"deno","label":"deno","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/deno","purlType":"cargo","versions":[{"text":"≥ 1.32.1, < 1.41.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.32.1, < 1.41.0","eol":null,"hubHref":null},{"vendor":"Crates.Io","product":"deno_runtime","name":"deno_runtime","label":"deno_runtime","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/deno_runtime","purlType":"cargo","versions":[{"text":"≥ 0.103.0, < 0.147.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.103.0, < 0.147.0","eol":null,"hubHref":null},{"vendor":"deno","product":"deno","name":"deno","label":"deno","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.32.1, < 1.41.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.32.1, < 1.41.0","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"deno","label":"Deno","category":"framework"}},"hubHref":"/vendor/deno/deno"},{"vendor":"deno","product":"deno_runtime","name":"deno runtime","label":"deno_runtime","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.103.0, < 0.147.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.103.0, < 0.147.0","eol":null,"hubHref":"/vendor/deno/deno_runtime"},{"vendor":"denoland","product":"deno","name":"deno","label":"deno","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.32.1, < 1.41.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.32.1, < 1.41.0","eol":null,"hubHref":"/vendor/denoland/deno"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-m4pq-fv2w-6hrw","label":"github.com/denoland/deno/security/advisories/GHSA-m4pq-fv2w-6hrw","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Exploit","Vendor Advisory"]},{"url":"https://github.com/denoland/deno/commit/78d430103a8f6931154ddbbe19d36f3b8630286d","label":"github.com/denoland/deno/commit/78d430103a8f6931154ddbbe19d36f3b8630286d","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch"]},{"url":"https://github.com/denoland/deno/commit/7e6b94231290020b55f1d08fb03ea8132781abc5","label":"github.com/denoland/deno/commit/7e6b94231290020b55f1d08fb03ea8132781abc5","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27936","label":"nvd.nist.gov/vuln/detail/CVE-2024-27936","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/denoland/deno","label":"github.com/denoland/deno","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-03-06T21:05:59.251Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-02T00:41:55.809Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":45,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T10:09:48.316Z","stale":false,"partial":false}}