CVE-2023-33966: Deno Missing "--allow-net" Permission Check For Vulnerability

HIGH
Advisory Identifier: GHSA-vc52-gwm3-8v2f
CVSS 8.6
CWE-269 CWE-276
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2023-33966
GHSA Identifier GHSA-vc52-gwm3-8v2f
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-269: Improper Privilege Management
Affected Product Deno
Package Ecosystem crates.io
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (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.

deno fixed: 1.34.1
Upgrade deno to 1.34.1
deno_runtime fixed: 0.115.0
Upgrade deno_runtime to 0.115.0
Verify Direct and Transitive Dependencies

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

### 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 Deno versions prior to 1.34.0 are unaffected. Deno Deploy users are unaffected. ### Patches This problem has been patched in Deno v1.34.1 and all users are recommended to update to this version. ### Workarounds No workaround is available for this issue.

CVE-2023-33966 Affected Deno Versions

2 component(s)
Fixed Versions:
1.34.10.115.0
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?
CVE-2023-33966 is a security vulnerability in Deno involving Missing "--allow-net" permission check for built-in Node modules under CWE-269: Improper Privilege Management.
Which Deno versions are affected?
Affected versions include releases prior to 1.34.1, 0.115.0 across affected packages: deno, deno_runtime.
What version fixes CVE-2023-33966?
Upgrading to 1.34.1, 0.115.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is deno affected?
Yes, deno is affected in releases prior to 1.34.1. Upgrade your dependency to 1.34.1 or later.
Is deno_runtime affected?
Yes, deno_runtime is affected in releases prior to 0.115.0. Upgrade your dependency to 0.115.0 or later.
What is the CVSS score of CVE-2023-33966?
CVE-2023-33966 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N.
What CWE is associated with CVE-2023-33966?
CVE-2023-33966 is classified under CWE-269: Improper Privilege Management (The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.).
How can I check crates.io dependencies for CVE-2023-33966?
Run the dependency tree command: 'inspect dependencies for deno'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}