SECURITY & CVE TRACK RECORD
Deno Security Advisories, CVEs & Patched Versions
Historical vulnerability disclosures, CVSS severity ratings, affected version ranges, and verified patch releases for Deno.
## Summary
A Deno program that opens a client `WebSocket` connection could be crashed by
the remote server. While handling the WebSocket handshake response, Deno parsed
the `Sec-WebSocket-Protocol` and `Sec-WebSocket-Extensions` response headers in
a way that assumed their by...
Vulnerable Range:
0 -> 2.7.5
## Summary
Deno's permission system enforces filesystem and execution restrictions by
comparing the requested path against the path supplied to `--deny-read`,
`--deny-write`, `--deny-run`, or `--deny-ffi`. On macOS, that comparison was
done at the raw-byte level while the APF...
Vulnerable Range:
0 -> 2.7.14
## Summary
When Deno was run in BYONM mode (`nodeModulesDir: "manual"`), the module resolver did not validate that a package's resolved entrypoint stayed within its `node_modules/<pkg>/` directory. A malicious `package.json` whose `main` field contained `..` segments was able...
Vulnerable Range:
0 -> 2.7.12
## Summary
Deno's network permission model is designed so that `--deny-net` rules apply to the **resolved IP address** of a destination, not just the literal string supplied by the caller. That means `--deny-net=127.0.0.1` (or `--deny-net=127.0.0.0/8`) is expected to block an...
Vulnerable Range:
0 -> 2.8.0
## Summary
`node:crypto.checkPrime(candidate[, options][, callback])` and `crypto.checkPrimeSync(candidate[, options])` ran no Miller-Rabin rounds at all when the caller left `options.checks` at its default of `0`. In that mode, the only test applied to the candidate was tria...
Vulnerable Range:
0 -> 2.8.1
## Summary
Deno's `node:child_process` implementation provided an `escapeShellArg()` helper used when callers passed `shell: true` to `spawn` / `spawnSync` / `exec` and friends. On Windows, the helper failed to quote arguments that contained `cmd.exe` metacharacters such as `...
Vulnerable Range:
0 -> 2.7.10
## Summary
In Deno, environment access is gated by the `env` permission. You can deny it
with `--deny-env`, or restrict it to a specific allowlist with
`--allow-env=FOO,BAR`. The expectation is that a program running without `env`
permission cannot change `process.env`.
`pro...
Vulnerable Range:
0 -> 2.8.1
## Summary
When a WebSocket connection was opened, Deno checked the destination hostname
against `--deny-net` rules but did not re-check the IP addresses that hostname
resolved to. An attacker-controlled script could use a specially crafted domain
name that passes the hostnam...
Vulnerable Range:
0 -> 2.8.1
## Summary
When `fetch()` was called, Deno checked the destination hostname against
`--deny-net` rules but did not re-check the IP addresses that hostname
resolved to. An attacker-controlled script could use a specially crafted domain
name that passes the hostname check yet r...
Vulnerable Range:
0 -> 2.8.1
## Summary
A flaw in Deno's Node.js tls compatibility layer could cause a TLS client to transmit application data in plaintext after a connection retry. When `autoSelectFamily was enabled and the first address-family attempt failed, the socket reinitialization path reused a s...
Vulnerable Range:
2.0.0 -> 2.7.8
## Summary
A command injection vulnerability exists in Deno's `node:child_process` polyfill (`shell: true` mode) that bypasses the fix
for CVE-2026-27190 (GHSA-hmh4-3xvx-q5hr). An attacker who controls arguments passed to `spawnSync` or `spawn` with `shell:
true` can ex...
Vulnerable Range:
2.7.0 -> 2.7.2
## Summary
A command injection vulnerability exists in Deno's `node:child_process` implementation.
## Reproduction
```javascript
import { spawnSync } from "node:child_process";
import * as fs from "node:fs";
// Cleanup
try { fs.unlinkSync('/tmp/rce_proof'); } catch {}
// C...
Vulnerable Range:
0 -> 2.6.8
### Summary
A prior patch aimed to block spawning Windows batch/shell files by returning an error when a spawned path’s extension matched `.bat` or `.cmd`. That check performs a case-sensitive comparison against lowercase literals and therefore can be bypassed when the extensi...
Vulnerable Range:
0 -> 2.5.6
### Summary
The vulnerability allows an attacker to have infinite encryptions.
This can lead to naive attempts at brute forcing, as well as more refined attacks with the goal to learn the server secrets.
### PoC
```js
import crypto from "node:crypto";
const key = crypto.r...
Vulnerable Range:
0 -> 2.6.0
### Summary
Deno versions up to 2.5.1 are vulnerable to Command Line Injection attacks on Windows when batch files are executed.
### Details
In Windows, ``CreateProcess()`` always implicitly spawns ``cmd.exe`` if a batch file (.bat, .cmd, etc.) is being executed even if the a...
Vulnerable Range:
0 -> 2.5.2
### Summary
`Deno.FsFile.prototype.stat` and `Deno.FsFile.prototype.statSync` are not limited by the permission model check `--deny-read=./`.
It's possible to retrieve stats from files that the user do not have explicit read access to (the script is executed with `--deny-r...
Vulnerable Range:
0 -> 2.5.3
### Summary
`Deno.FsFile.prototype.utime` and `Deno.FsFile.prototype.utimeSync` are not limited by the permission model check `--deny-write=./`.
It's possible to change to change the access (`atime`) and modification (`mtime`) times on the file stream resource even when the ...
Vulnerable Range:
0 -> 2.5.3
### Summary
Static imports are exempted from the network permission check. An attacker could exploit this to leak the password file on the network.
### Details
Static imports in Deno are exempted from the network permission check. This can be exploited by attackers in multi...
Vulnerable Range:
0 -> 2.0.0
## Summary
It is possible to bypass Deno's read/write permission checks by using `ATTACH DATABASE` statement.
## PoC
```js
// poc.js
import { DatabaseSync } from "node:sqlite"
const db = new DatabaseSync(":memory:");
db.exec("ATTACH DATABASE 'test.db' as test;");
db.exec(...
Vulnerable Range:
2.2.0 -> 2.2.5, 0.129.0 -> 0.134.0
### Summary
The [Deno.env.toObject](https://docs.deno.com/api/deno/~/Deno.Env.toObject) method ignores any variables listed in the `--deny-env` option of the `deno run` command. When looking at the [documentation](https://docs.deno.com/runtime/fundamentals/security/#environmen...
Vulnerable Range:
0 -> 2.1.13, 2.2.0 -> 2.2.13, 0 -> 0.212.0
### Summary
`deno run --allow-read --deny-read main.ts` results in allowed, even though 'deny' should be stronger. Same with all global unary permissions given as `--allow-* --deny-*`.
### Details
Caused by the fast exit logic in #22894.
### PoC
Run the above command expe...
Vulnerable Range:
1.41.3 -> 2.1.13, 2.2.0 -> 2.2.13, 2.3.0 -> 2.3.2
### Summary
This affects AES-256-GCM and AES-128-GCM in Deno, introduced by commit [0d1beed](https://github.com/denoland/deno/commit/0d1beed). Specifically, the authentication tag is not being validated. This means tampered ciphertexts or incorrect keys might not be detected,...
Vulnerable Range:
1.46.0 -> 2.1.7, 0.102.0 -> 0.125.0
It is possible to bypass Deno's read/write permission
checks by using ATTACH DATABASE statement.
## PoC
```
// poc.js
import { DatabaseSync } from "node:sqlite"
const db = new DatabaseSync(":memory:");
db.exec("ATTACH DATABASE 'test.db' as test;");
db.exec("CREATE TABLE te...
Vulnerable Range:
2.2.0 -> 2.2.5
fetch: Authorization headers not dropped when redirecting cross-origin
### Summary
When you send a request with the `Authorization` header to one domain, and the response asks to redirect to a different domain, Deno's`fetch()` redirect handling creates a follow-up redirect request that keeps the original `Authorization` header, leaking its conten...
Vulnerable Range:
0.0.1 -> 0.204.0, 0 -> unfixed, 2.0.0 -> 2.1.2
Fix Version:
0.204.0
The Deno sandbox may be unexpectedly weakened by allowing file read/write access to privileged files in various locations on Unix and Windows platforms. For example, reading `/proc/self/environ` may provide access equivalent to `--allow-env`, and writing `/proc/self/mem` may p...
Vulnerable Range:
0 -> 1.43.1
### Summary
Use of inherently unsafe `*const c_void` and `ExternalPointer` leads to use-after-free access of the underlying structure, resulting in arbitrary code execution.
### Details
`*const c_void` and `ExternalPointer` (defined via `external!()` macros) types are used...
Vulnerable Range:
1.36.2 -> 1.40.3
### Summary
Use of raw file descriptors in `op_node_ipc_pipe()` leads to premature close of arbitrary file descriptors, allowing standard input to be re-opened as a different resource resulting in permission prompt bypass.
### Details
Node child_process IPC relies on the J...
Vulnerable Range:
1.39.0 -> 1.39.1
### Summary
Deno improperly checks that an import specifier's hostname is equal to or a child of a token's hostname, which can cause tokens to be sent to servers they shouldn't be sent to. An auth token intended for `example.com` may be sent to `notexample.com`.
### Details
...
Vulnerable Range:
1.8.0 -> 1.40.4
### Summary
A maliciously crafted permission request can show the spoofed permission prompt by inserting a broken ANSI escape sequence into the request contents.
### Details
In [the patch for CVE-2023-28446](https://github.com/denoland/deno/commit/78d430103a8f6931154ddbbe19d3...
Vulnerable Range:
1.32.1 -> 1.41.0, 0.103.0 -> 0.147.0
### Summary
A vulnerability in Deno's Node.js compatibility runtime allows for cross-session data contamination during simultaneous asynchronous reads from Node.js streams sourced from sockets or files. The issue arises from the re-use of a global buffer (BUF) in stream_wrap....
Vulnerable Range:
1.35.1 -> 1.36.3
### Impact
Insufficient validation of parameters in `Deno.makeTemp*` APIs would allow for creation of files outside of the allowed directories. This may allow the user to overwrite important files on the system that may affect other systems.
A user may provide a prefix or su...
Vulnerable Range:
0 -> 1.41.1
### Impact
Outbound HTTP requests made using the built-in "node:http" or "node:https" modules are incorrectly not checked against the network permission allow list (`--allow-net`). Dependencies relying on these built-in modules are subject to the vulnerability too.
Users of ...
Vulnerable Range:
1.34.0 -> 1.34.1, 0.114.0 -> 0.115.0
### Impact
Versions of the package deno before 1.31.0 are vulnerable to Regular Expression Denial of Service (ReDoS) due to the upgradeWebSocket function, which contains regexes in the form of /s*,s*/, used for splitting the Connection/Upgrade header. A specially crafted Conne...
Vulnerable Range:
1.12.0 -> 1.31.0
### 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 ...
Vulnerable Range:
1.8.0 -> 1.31.2, 1.8.0 -> 1.31.2
### Impact
[Resizable ArrayBuffers](https://github.com/tc39/proposal-resizablearraybuffer) passed to asynchronous native functions that are shrunk during the asynchronous operation could result in an out-of-bound read/write.
It is unlikely that this has been exploited in the...
Vulnerable Range:
1.32.0 -> 1.32.1, 0.87.0 -> 0.88.0, 0.102.0 -> 0.103.0
### 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...
Vulnerable Range:
1.9.0 -> 1.29.3
Deno <=1.14.0 file sandbox does not handle symbolic links correctly. When running Deno with specific write access, the Deno.symlink method can be used to gain access to any directory.
Vulnerable Range:
0 -> 1.16.0
### Impact
The versions of Deno between release 1.18.0 and 1.20.2 (inclusive) are vulnerable to an attack where a malicious actor controlling the code executed in a Deno runtime could bypass permission checks and execute arbitrary shell code.
There is **no** evidence that th...
Vulnerable Range:
1.18.0 -> 1.20.3
### Impact
Modules that are dynamically imported through `import()` or `new Worker` might have been able to bypass network and file system permission checks when statically importing other modules. In Deno 1.5.x and 1.6.x only programs dynamically importing (especially transi...
Vulnerable Range:
1.5.0 -> 1.10.2