# CVE-2025-48934: Deno.env.toObject() ignores the variables listed in --deny-env and returns all environment variables

- Severity: Medium 5.5 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-06-04T19:21:17.701Z
- Modified: 2026-09-10T03:50:24.980Z
- Also known as: GHSA-7w8p-chxq-2789
- Weaknesses: CWE-201
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- denoland deno: < 2.1.13; >= 2.2.0, < 2.2.13
- deno (crates.io): before 2.1.13; from 2.2.0 before 2.2.13
- deno_runtime (crates.io): before 0.212.0
- deno deno: before 2.1.13; from 2.2.0 before 2.2.13

## Every score

- GitHub_M: CVSS:4.0 5.5 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/denoland/deno/security/advisories/GHSA-7w8p-chxq-2789> (exploit, vendor-advisory, web)
- <https://github.com/denoland/deno/pull/29079> (issue-tracking, patch, web)
- <https://github.com/denoland/deno/commit/2959e083912420988066a001c2b2d6732a1b562f> (patch, web)
- <https://github.com/denoland/deno/commit/946ccda1aa19a00c478a5e6826b75053b050d753> (patch, web)
- <https://docs.deno.com/api/deno/~/Deno.Env.toObject> (product, web)
- <https://docs.deno.com/runtime/fundamentals/security/#environment-variables> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-48934> (advisory)
- <https://github.com/denoland/deno> (package)

## Sources

- CVE List: [CVE-2025-48934](https://www.cve.org/CVERecord?id=CVE-2025-48934), CVE Terms of Use, modified 2025-06-04
- GitHub Advisory Database: [GHSA-7w8p-chxq-2789](https://github.com/advisories/GHSA-7w8p-chxq-2789), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-48934](https://nvd.nist.gov/vuln/detail/CVE-2025-48934), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-48934 · Whole record: https://cve.day/CVE-2025-48934.json · Rebuilt by cve.day 2026-11-25T22:58:58.762Z
