CVE-2025-48935: Deno Sqlite` Vulnerability
MODERATECVE-2025-48935 is a MODERATE (CVSS 9.1) sqlite` vulnerability (CWE-863: Incorrect Authorization) affecting Deno libraries in the crates.io ecosystem. The issue involves sqlite`. Remediation is available by upgrading affected packages to version 2.2.5, 0.134.0.
CVE-2025-48935 at a Glance
Security Impact
CVSS: 9.1
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:H/I:H/A:N).
How to Fix CVE-2025-48935
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 2.2.5
Upgrade deno_node to 0.134.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-2025-48935, 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.2.5), 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
CVE-2025-48935 Affected Deno Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
deno
|
crates.io |
≥ 2.2.0
< 2.2.5
|
2.2.5
|
|
deno_node
|
crates.io |
≥ 0.129.0
< 0.134.0
|
0.134.0
|
References
Frequently Asked Questions
What is CVE-2025-48935?
Which Deno versions are affected?
What version fixes CVE-2025-48935?
Is deno affected?
Is deno_node affected?
What is the CVSS score of CVE-2025-48935?
What CWE is associated with CVE-2025-48935?
How can I check crates.io dependencies for CVE-2025-48935?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8vxj-4cph-c596",
"modified" : "2025-12-31T21:58:17Z",
"published" : "2025-06-04T21:22:27Z",
"aliases" : [ "CVE-2025-48935" ],
"summary" : "Deno has --allow-read / --allow-write permission bypass in `node:sqlite`",
"details" : "## Summary\n\nIt is possible to bypass Deno's read/write permission checks by using `ATTACH DATABASE` statement.\n\n## PoC\n\n```js\n// poc.js\nimport { DatabaseSync } from \"node:sqlite\"\n\nconst db = new DatabaseSync(\":memory:\");\ndb.exec(\"ATTACH DATABASE 'test.db' as test;\");\n\ndb.exec(\"CREATE TABLE test.test (id INTEGER PRIMARY KEY, name TEXT);\");\n```\n\n```\n$ deno poc.js\n```",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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" : "2.2.0"
}, {
"fixed" : "2.2.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "crates.io",
"name" : "deno_node"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.129.0"
}, {
"fixed" : "0.134.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/denoland/deno/security/advisories/GHSA-8vxj-4cph-c596"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48935"
}, {
"type" : "WEB",
"url" : "https://github.com/denoland/deno/commit/31a97803995bd94629528ba841b2418d3ca01860"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/denoland/deno"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2025-0138.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-04T21:22:27Z",
"nvd_published_at" : "2025-06-04T20:15:24Z"
}
}