CVE-2025-48934
Deno.env.toObject() ignores the variables listed in --deny-env and returns all environment variables
Also known as GHSA-7w8p-chxq-2789
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.
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
Vulnerability facts
- Affected
- deno < 2.1.13; deno_runtime < 0.212.0
- Fixed in
- 2.1.13, 2.2.13, 0.212.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- 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:POpen in CVSS calculator
Show all 12 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
- EPSS
- 0.77% chance of exploitation in 30 days (percentile 52, 2026-11-26)
- CWE
- CWE-201
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| crates.io deno | < 2.1.13 | 2.1.13, 2.2.13 | osv |
| crates.io deno_runtime | < 0.212.0 | 0.212.0 | osv |
| denoland deno | < 2.1.13; >= 2.2.0, < 2.2.13 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Vendor advisories
Patches
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.