CVE-2023-33966: Deno Missing "--allow-net" Permission Check For Vulnerability
HIGHCVE-2023-33966 is a HIGH (CVSS 8.6) missing "--allow-net" permission check for vulnerability (CWE-269: Improper Privilege Management) affecting Deno libraries in the crates.io ecosystem. The issue involves missing "--allow-net" permission check for built-in node modules. Remediation is available by upgrading affected packages to version 1.34.1, 0.115.0.
CVE-2023-33966 at a Glance
Security Impact
CVSS: 8.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N).
How to Fix CVE-2023-33966
To remediate this vulnerability, upgrade all affected Deno dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade deno to 1.34.1
Upgrade deno_runtime to 0.115.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for deno
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-33966, inspect your project dependencies for Deno:
inspect dependencies for deno
Analyze the terminal output to locate any version of Deno in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.34.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Deno, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-33966 Affected Deno Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
deno
|
crates.io |
≥ 1.34.0
< 1.34.1
All 1 versions
1.34.0
|
1.34.1
|
|
deno_runtime
|
crates.io |
≥ 0.114.0
< 0.115.0
All 1 versions
0.114.0
|
0.115.0
|
References
Frequently Asked Questions
What is CVE-2023-33966?
Which Deno versions are affected?
What version fixes CVE-2023-33966?
Is deno affected?
Is deno_runtime affected?
What is the CVSS score of CVE-2023-33966?
What CWE is associated with CVE-2023-33966?
How can I check crates.io dependencies for CVE-2023-33966?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vc52-gwm3-8v2f",
"modified" : "2023-05-31T23:39:40Z",
"published" : "2023-05-31T23:39:40Z",
"aliases" : [ "CVE-2023-33966" ],
"summary" : "Missing \"--allow-net\" permission check for built-in Node modules",
"details" : "### Impact\n\nOutbound 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.\n\nUsers of Deno versions prior to 1.34.0 are unaffected. Deno Deploy users are unaffected.\n\n### Patches\n\nThis problem has been patched in Deno v1.34.1 and all users are recommended to update to this version.\n\n### Workarounds\n\nNo workaround is available for this issue.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "deno"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.34.0"
}, {
"fixed" : "1.34.1"
} ]
} ],
"versions" : [ "1.34.0" ]
}, {
"package" : {
"ecosystem" : "crates.io",
"name" : "deno_runtime"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.114.0"
}, {
"fixed" : "0.115.0"
} ]
} ],
"versions" : [ "0.114.0" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/denoland/deno/security/advisories/GHSA-vc52-gwm3-8v2f"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-33966"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/denoland/deno"
}, {
"type" : "WEB",
"url" : "https://github.com/denoland/deno/releases/tag/v1.34.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-269", "CWE-276" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-05-31T23:39:40Z",
"nvd_published_at" : "2023-05-31T18:15:09Z"
}
}