Improper privilege management in Deno - CVE-2025-61786

 

Improper privilege management in Deno - CVE-2025-61786

Published: April 23, 2026


Vulnerability identifier: #VU127063
CSH Severity: Low
CVSS v4: 4.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-61786
CWE-ID: CWE-269
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to disclose sensitive information.

The vulnerability exists due to improper privilege management in Deno.FsFile.prototype.stat and Deno.FsFile.prototype.statSync when retrieving file metadata from an opened file handle. A local user can open a file with write-only flags and call the stat APIs to disclose sensitive information.

The issue occurs when the script is executed with --deny-read=./, allowing file metadata to be retrieved even though direct read access is denied.


Affected software

Deno

How to mitigate CVE-2025-61786

Install security update from vendor's website.

Deno - addressed in versions 2.2.15, 2.5.3

External References

Related Security Bulletins