Skip to content
OpenAdvisories

Package · crates.io

deno

38 known vulnerabilities.

13 results · Clear filters · Feed

  • Medium 4.3

    Deno: Denial of service via non-ASCII bytes in WebSocket response headers

    Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to 2.7.5, 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 a…

  • Medium 5.5

    Deno: BYONM module resolution allows `package.json` main path traversal to bypass `--allow-read` restrictions

    Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to 2.7.12, 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. …

  • Medium 6.5

    Deno Node TCPWrap numeric hostname aliases bypass --deny-net resolved-IP deny checks

    Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to 2.8.0, the Node.js compatibility TCP path checked the permission against the original hostname string before resolution and then did not re-check after resolution. A caller could therefore pa…

  • Medium 5.2

    Deno: process.loadEnvFile() bypasses env permission checks and mutates process.env with only read access

    Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to 2.8.1, 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 r…

  • Medium 5.2

    Deno: WebSocket API sandbox bypass via missing post-DNS check

    Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to 2.8.1, 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-cont…

  • Medium 5.2

    Deno: `fetch()` API sandbox bypass via missing DNS resolution check

    Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to 2.8.1, 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 c…

  • Medium 5.3

    Deno vulnerable to Exposure of Sensitive Information to an Unauthorized Actor

    ### 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 att…

  • Medium 5.5

    Deno has --allow-read / --allow-write permission bypass in `node:sqlite`

    Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 2.2.0 and prior to versions 2.2.5, it is possible to bypass Deno's permission read/write db permission check by using `ATTACH DATABASE` statement. Version 2.2.5 contains a patch fo…

  • Medium 5.5

    Deno.env.toObject() ignores the variables listed in --deny-env and returns all environment variables

    Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to versions 2.1.13 and 2.2.13, the `Deno.env.toObject` method ignores any variables listed in the `--deny-env` option of the `deno run` command. When looking at the documentation of the `--deny-…

  • Medium 5.5

    Deno run with --allow-read and --deny-read flags results in allowed

    Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 1.41.3 and prior to versions 2.1.13, 2.2.13, and 2.3.2, `deno run --allow-read --deny-read main.ts` results in allowed, even though 'deny' should be stronger. The result is the sam…

  • Medium 4.6

    Deno's improper suffix match testing for DENO_AUTH_TOKENS

    Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 1.8.0 and prior to version 1.40.4, 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 ser…

  • Medium 5.8

    Insufficient permission checking in `Deno.makeTemp*` APIs

    Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults. 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…

  • Medium 5.3

    Regular Expression Denial of Service in Deno.upgradeWebSocket API

    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 crafte…