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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; Exploit maturity: Proof of concept
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.77% (percentile 52, 2026-11-26)
- **CWE:** CWE-201
- **Aliases:** GHSA-7w8p-chxq-2789
- **Published:** 2025-06-04T19:21:17.701Z
- **Modified:** 2026-09-10T03:50:24.980Z

## Who should check

- Projects that depend on crates.io package deno (\< 2.1.13)
- Projects that depend on crates.io package deno\_runtime (\< 0.212.0)
- Anyone running denoland deno \< 2.1.13; \>= 2.2.0, \< 2.2.13

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

## Affected and fixed versions

- crates.io `deno`: affected \< 2.1.13; fixed 2.1.13, 2.2.13 (osv)
- crates.io `deno_runtime`: affected \< 0.212.0; fixed 0.212.0 (osv)
- denoland deno: \< 2.1.13; \>= 2.2.0, \< 2.2.13 (cvelist)

## Mitigation

- Upgrade deno to one of 2.1.13, 2.2.13 (or later in the same release line).
- Upgrade deno\_runtime to 0.212.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-48934. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-48934.md
Affected: deno < 2.1.13; deno_runtime < 0.212.0
Fixed in: 2.1.13, 2.2.13, 0.212.0

Steps:
1. Search this machine and project for deno (crates.io), deno_runtime (crates.io), denoland deno: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-48934 being exploited?

There is no confirmed exploitation: CVE-2025-48934 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.77% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-48934?

Medium: CVSS 5.5 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-48934?

deno \< 2.1.13; deno\_runtime \< 0.212.0.

### Is there a fix for CVE-2025-48934?

Yes. Fixed in 2.1.13, 2.2.13, 0.212.0. Upgrade deno to one of 2.1.13, 2.2.13 (or later in the same release line). Upgrade deno\_runtime to 0.212.0 or later.

### How do I check if I'm affected by CVE-2025-48934?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-48934>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7w8p-chxq-2789> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-48934> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-48934>
