CVE-2025-61786 in Deno
Deno is a JavaScript, TypeScript, and WebAssembly runtime. In versions prior to 2.5.3 and 2.2.15, `Deno.FsFile.prototype.stat` and `Deno.FsFile.prototype.statSync` are not limited by the permission model check `--deny-read=./`. It's possible to retrieve stats from files that the user do not have explicit read access...
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Deno | Deno | ≤ 2.2.15 ≥ 2.3.0, < 2.5.3 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Deno is a JavaScript, TypeScript, and WebAssembly runtime. In versions prior to 2.5.3 and 2.2.15, `Deno.FsFile.prototype.stat` and `Deno.FsFile.prototype.statSync` are not limited by the permission model check `--deny-read=./`. It's possible to retrieve stats from files that the user do not have explicit read access to (the script is executed with `--deny-read=./`). Similar APIs like `Deno.stat` and `Deno.statSync` require `allow-read` permission, however, when a file is opened, even with file-write only flags and deny-read permission, it's still possible to retrieve file stats, and thus bypass the permission model. Versions 2.5.3 and 2.2.15 fix the issue.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-61786 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-035084-L |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| Published | 2025-10-08 |
| Last modified | 2026-10-08 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-269: Improper Privilege Management
Software does not properly assign, modify, track, or check privileges, allowing unauthorized elevation of access.
Related attack patterns (CAPEC)
CAPEC-58 Restful Privilege Elevation via CWE-269
CAPEC-122 Privilege Abuse via CWE-269
CAPEC-233 Privilege Escalation via CWE-269
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Deno versions prior to 2.5.3 and 2.2.15 have a vulnerability in the `Deno.FsFile.prototype.stat` and `Deno.FsFile.prototype.statSync` methods, which do not respect the `--deny-read=./` permission model, allowing unauthorized file stat retrieval.
An attacker can exploit this vulnerability by running a script with the `--deny-read=./` flag, which should prevent read access to files in the current directory. However, the script can still call `Deno.FsFile.prototype.stat` or `Deno.FsFile.prototype.statSync` to retrieve metadata about files it should not have access to.
Questions
What is CVE-2025-61786?
Deno versions prior to 2.5.3 and 2.2.15 have a vulnerability in the `Deno.FsFile.prototype.stat` and `Deno.FsFile.prototype.statSync` methods, which do not respect the `--deny-read=./` permission model, allowing unauthorized file stat retrieval.
What is the CVSS score for CVE-2025-61786?
CVE-2025-61786 has CVSS 3.3 (Low). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N. EPSS: 0.2%.
Is CVE-2025-61786 actively exploited?
No confirmed active exploitation of CVE-2025-61786 as of 2026-10-10.
How do I remediate CVE-2025-61786?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2025-61786?
CVE-2025-61786 affects Deno Deno.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Deno","product":"Deno","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-08.