CVE-2025-48934 Details
Description
Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to versions 2.1.13 and 2.2.13, the `Deno.env.toObject` method ignores any variables listed in the `--deny-env` option of the `deno run` command. When looking at the documentation of the `--deny-env` option this might lead to a false impression that variables listed in the option are impossible to read. Software relying on the combination of both flags to allow access to most environment variables except a few sensitive ones will be vulnerable to malicious code trying to steal secrets using the `Deno.env.toObject()` method. Versions 2.1.13 and 2.2.13 contains a patch.
A vulnerability exists in Deno versions 2.1.12 and prior, as well as 2.2.12 and prior, where the `Deno.env.toObject` method fails to respect variables listed in the `--deny-env` option. This oversight can create a false sense of security, leading users to believe that denied variables cannot be accessed. Consequently, software that relies on this combination of flags could be exploited by malicious code to exfiltrate sensitive information, such as secrets, through the `Deno.env.toObject()` method.
Users can upgrade to Deno versions 2.1.13 or 2.2.13, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 4, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-201 | Insertion of Sensitive Information Into Sent Data | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| deno deno | < 2.1.13 >= 2.2.0, < 2.2.13 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 2, 2025 | Initial Analysis | [email protected] |
| Jun 4, 2025 | New CVE Received | [email protected] |
| Jun 4, 2025 | CVE Modified | CISA-ADP |