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.
Metrics
Affected Vendors & Products
References
History
Wed, 02 Jul 2025 14:00:00 +0000
Type | Values Removed | Values Added |
---|---|---|
First Time appeared |
Deno
Deno deno |
|
CPEs | cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:* | |
Vendors & Products |
Deno
Deno deno |
|
Metrics |
cvssV3_1
|
Wed, 04 Jun 2025 20:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Metrics |
ssvc
|
Wed, 04 Jun 2025 19:30:00 +0000
Type | Values Removed | Values Added |
---|---|---|
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. | |
Title | Deno.env.toObject() ignores the variables listed in --deny-env and returns all environment variables | |
Weaknesses | CWE-201 | |
References |
|
|
Metrics |
cvssV4_0
|

Status: PUBLISHED
Assigner: GitHub_M
Published: 2025-06-04T19:21:17.701Z
Updated: 2025-06-04T19:32:14.582Z
Reserved: 2025-05-28T18:49:07.575Z
Link: CVE-2025-48934

Updated: 2025-06-04T19:31:39.056Z

Status : Analyzed
Published: 2025-06-04T20:15:24.163
Modified: 2025-07-02T13:43:10.557
Link: CVE-2025-48934

No data.