{"id":"CVE-2025-48934","state":"PUBLISHED","title":"Deno.env.toObject() ignores the variables listed in --deny-env and returns all environment variables","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.","publishedAt":"2025-06-04T19:21:17.701Z","updatedAt":"2025-06-04T19:32:14.582Z","severity":{"score":5.5,"label":"Medium","version":"4.0","vector":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["denoland deno"],"affected":[{"vendor":"denoland","product":"deno","versions":[{"version":"< 2.1.13","status":"affected"},{"version":">= 2.2.0, < 2.2.13","status":"affected"}]}],"references":["https://github.com/denoland/deno/security/advisories/GHSA-7w8p-chxq-2789","https://github.com/denoland/deno/pull/29079","https://github.com/denoland/deno/commit/2959e083912420988066a001c2b2d6732a1b562f","https://github.com/denoland/deno/commit/946ccda1aa19a00c478a5e6826b75053b050d753","https://docs.deno.com/api/deno/~/Deno.Env.toObject","https://docs.deno.com/runtime/fundamentals/security/#environment-variables"],"weaknesses":["CWE-201"],"ingestedAt":"2026-10-29T20:09:23.771Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/48xxx/CVE-2025-48934.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-48934","state":"PUBLISHED","datePublished":"2025-06-04T19:21:17.701Z","dateUpdated":"2025-06-04T19:32:14.582Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-05-28T18:49:07.575Z"},"containers":{"cna":{"title":"Deno.env.toObject() ignores the variables listed in --deny-env and returns all environment variables","descriptions":[{"lang":"en","value":"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":[{"vendor":"denoland","product":"deno","versions":[{"version":"< 2.1.13","status":"affected"},{"version":">= 2.2.0, < 2.2.13","status":"affected"}]}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-7w8p-chxq-2789","name":"https://github.com/denoland/deno/security/advisories/GHSA-7w8p-chxq-2789","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/denoland/deno/pull/29079","name":"https://github.com/denoland/deno/pull/29079","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/commit/2959e083912420988066a001c2b2d6732a1b562f","name":"https://github.com/denoland/deno/commit/2959e083912420988066a001c2b2d6732a1b562f","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/commit/946ccda1aa19a00c478a5e6826b75053b050d753","name":"https://github.com/denoland/deno/commit/946ccda1aa19a00c478a5e6826b75053b050d753","tags":["x_refsource_MISC"]},{"url":"https://docs.deno.com/api/deno/~/Deno.Env.toObject","name":"https://docs.deno.com/api/deno/~/Deno.Env.toObject","tags":["x_refsource_MISC"]},{"url":"https://docs.deno.com/runtime/fundamentals/security/#environment-variables","name":"https://docs.deno.com/runtime/fundamentals/security/#environment-variables","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-201","lang":"en","description":"CWE-201: Insertion of Sensitive Information Into Sent Data","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-06-04T19:21:17.701Z"},"source":{"advisory":"GHSA-7w8p-chxq-2789","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-7w8p-chxq-2789","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-06-04T19:32:01.410953Z","id":"CVE-2025-48934","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-06-04T19:32:14.582Z"}}]}}}