CVE-2025-48934
published medium CVSS 4.0 · 5.5Deno.env.toObject() ignores the variables listed in --deny-env and returns all environment variables
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| denoland | — | deno< 2.1.13 · >= 2.2.0, < 2.2.13 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| denoland | deno | < 2.1.13 (affected)>= 2.2.0, < 2.2.13 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-201 CWE-201: Insertion of Sensitive Information Into Sent Data
References
6- https://docs.deno.com/api/deno/~/Deno.Env.toObject
- https://docs.deno.com/runtime/fundamentals/security/#environment-variables
- https://github.com/denoland/deno/commit/2959e083912420988066a001c2b2d6732a1b562f
- https://github.com/denoland/deno/commit/946ccda1aa19a00c478a5e6826b75053b050d753
- https://github.com/denoland/deno/pull/29079
- https://github.com/denoland/deno/security/advisories/GHSA-7w8p-chxq-2789
Provider assertions
2GitHub_M · cna
Deno.env.toObject() ignores the variables listed in --deny-env and returns all environment variables
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- d08cff5f9551e188544f8a417a5d6cdd4f55a4067641b15e7d59f3ebe09b30c1
- Ingested
- 23 Sep 2026, 08:50:57 UTC
- Source record
- Official CVE record