Deno missing "--allow-net" permission check for built-in Node modules
denoland deno
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| deno crates.io |
|
|
| deno_runtime crates.io |
|
|
denoland deno
| Product | Affected | Fixed in |
|---|---|---|
| deno crates.io |
|
|
| deno_runtime crates.io |
|
|
Deno is a runtime for JavaScript and TypeScript. In deno 1.34.0 and deno_runtime 0.114.0, 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 Deno versions prior to 1.34.0 are unaffected. Deno Deploy users are unaffected. This problem has been patched in Deno v1.34.1 and deno_runtime 0.114.1 and all users are recommended to update to this version. No workaround is available for this issue.
From the CVE record · GitHub_M
In affected Deno packages, outbound requests through the built-in node:http or node:https modules bypass the --allow-net network permission list. Code or dependencies using those modules can make outbound HTTP requests that the permission list would otherwise block.
Check installations of the crates.io deno package from 1.34.0 up to, but not including, 1.34.1, or deno_runtime from 0.114.0 up to, but not including, 0.115.0; Deno Deploy users are unaffected.