Deno.env.toObject() ignores the variables listed in --deny-env and returns all environment variables
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| denoland | deno | affected |
|
No data.
No data available yet.
| Source | ID | Title |
|---|---|---|
EUVD |
EUVD-2025-16913 | Deno.env.toObject() ignores the variables listed in --deny-env and returns all environment variables |
Github GHSA |
GHSA-7w8p-chxq-2789 | Deno.env.toObject() ignores the variables listed in --deny-env and returns all environment variables |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.444% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
epss
|
epss
|
| 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
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| 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
|