CVE-2025-48888: Deno Deno Run With --allow-read And Vulnerability

MODERATE
Advisory Identifier: GHSA-xqxc-x6p3-w683
CVSS 5.3
CWE-863
Published
Advisory Summary

CVE-2025-48888 is a MODERATE (CVSS 5.3) deno run with --allow-read and vulnerability (CWE-863: Incorrect Authorization) affecting Deno libraries in the crates.io ecosystem. The issue involves deno run with --allow-read and --deny-read flags results in allowed. Remediation is available by upgrading affected packages to version 2.1.13, 2.2.13, 2.3.2, 0.212.0.

CVE-2025-48888 at a Glance

CVE Identifier CVE-2025-48888
GHSA Identifier GHSA-xqxc-x6p3-w683
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-863: Incorrect Authorization
Affected Product Deno
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 5.3

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:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2025-48888

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: 2.1.13
Upgrade deno to 2.1.13
deno fixed: 2.2.13
Upgrade deno to 2.2.13
deno fixed: 2.3.2
Upgrade deno to 2.3.2
deno_runtime fixed: 0.212.0
Upgrade deno_runtime to 0.212.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-2025-48888, 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 2.1.13), 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. 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

### 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 expecting no permissions to be passed. ### Impact This only affects a nonsensical combination of flags, so there shouldn't be a real impact on the userbase.

CVE-2025-48888 Affected Deno Versions

4 component(s)
Fixed Versions:
2.1.132.2.132.3.20.212.0
Product / Package Ecosystem Affected Versions Fixed Version
deno
crates.io
≥ 1.41.3
< 2.1.13
2.1.13
deno
crates.io
≥ 2.2.0
< 2.2.13
2.2.13
deno
crates.io
≥ 2.3.0
< 2.3.2
2.3.2
deno_runtime
crates.io
≥ 0.150.0
< 0.212.0
0.212.0

References

Frequently Asked Questions

What is CVE-2025-48888?
CVE-2025-48888 is a security vulnerability in Deno involving Deno run with --allow-read and --deny-read flags results in allowed under CWE-863: Incorrect Authorization.
Which Deno versions are affected?
Affected versions include releases prior to 2.1.13, 2.2.13, 2.3.2, 0.212.0 across affected packages: deno, deno_runtime.
What version fixes CVE-2025-48888?
Upgrading to 2.1.13, 2.2.13, 2.3.2, 0.212.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is deno affected?
Yes, deno is affected in releases prior to 2.1.13, 2.2.13, 2.3.2. Upgrade your dependency to 2.1.13, 2.2.13, 2.3.2 or later.
Is deno_runtime affected?
Yes, deno_runtime is affected in releases prior to 0.212.0. Upgrade your dependency to 0.212.0 or later.
What is the CVSS score of CVE-2025-48888?
CVE-2025-48888 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2025-48888?
CVE-2025-48888 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check crates.io dependencies for CVE-2025-48888?
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-xqxc-x6p3-w683",
  "modified" : "2025-07-02T18:29:57Z",
  "published" : "2025-06-04T21:13:44Z",
  "aliases" : [ "CVE-2025-48888" ],
  "summary" : "Deno run with --allow-read and --deny-read flags results in allowed",
  "details" : "### Summary\n\n`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-*`.\n\n### Details\n\nCaused by the fast exit logic in #22894.\n\n### PoC\n\nRun the above command expecting no permissions to be passed.\n\n### Impact\n\nThis only affects a nonsensical combination of flags, so there shouldn't be a real impact on the userbase.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "deno"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.41.3"
      }, {
        "fixed" : "2.1.13"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "deno"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.2.13"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "deno"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0"
      }, {
        "fixed" : "2.3.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "deno_runtime"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.150.0"
      }, {
        "fixed" : "0.212.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/denoland/deno/security/advisories/GHSA-xqxc-x6p3-w683"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48888"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/denoland/deno/pull/22894"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/denoland/deno/pull/29213"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/denoland/deno/commit/2f0fae9d9071dcaf0a689bc7097584b1b9ebc8db"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/denoland/deno/commit/9d665572d3cd39f997e29e6daac7c1102fc5c04f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/denoland/deno/commit/ef315b56c26c9ef5f25284a5100d2ed525a148cf"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/denoland/deno"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-04T21:13:44Z",
    "nvd_published_at" : "2025-06-04T20:15:23Z"
  }
}