CVE-2025-48934Deno.env.toObject() ignores the variables listed in --deny-env and returns all environment variables
- 5.5MediumCVSS base score
- 0.44%Exploitation in 30 daysEPSS · top 61% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. A reference of the record is tagged as an exploit. CISA's SSVC rates its exploitation: a proof of concept is public.
Show the exploits1
References tagged exploit1 reference
- https://github.com/denoland/deno/security/advisories/GHSA-7w8p-chxq-2789 (opens in a new tab)x_refsource_CONFIRMexploit
Timeline
ID reserved
By GitHub_M
- 7 days later
· 7 days later
Published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 4.0 | Medium5.5 | 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 |
| NVDNVD · Analyzed | 4.0 | Medium5.5 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
- EPSS (exploitation in 30 days)
- 0.44% · top 61% of all CVEs (12 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- crates.iodenoGHSA-7w8p-chxq-2789 (opens in a new tab)
- crates.iodeno_runtimeGHSA-7w8p-chxq-2789 (opens in a new tab)
References
References6
- https://github.com/denoland/deno/security/advisories/GHSA-7w8p-chxq-2789 (opens in a new tab)x_refsource_CONFIRMexploit
- https://github.com/denoland/deno/pull/29079 (opens in a new tab)x_refsource_MISC
- https://github.com/denoland/deno/commit/2959e083912420988066a001c2b2d6732a1b562f (opens in a new tab)x_refsource_MISC
- https://github.com/denoland/deno/commit/946ccda1aa19a00c478a5e6826b75053b050d753 (opens in a new tab)x_refsource_MISC
- https://docs.deno.com/api/deno/~/Deno.Env.toObject (opens in a new tab)x_refsource_MISC
- https://docs.deno.com/runtime/fundamentals/security/#environment-variables (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-16913 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-7w8p-chxq-2789 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-48934)Record last updated .