Read the docs
TI-2025-31072 Aliases CVE-2025-48934GHSA-7w8p-chxq-2789

Deno.env.toObject() ignores the variables listed in --deny-env and returns all environment variables

Priority MEDIUM 64CWE-201Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Information disclosure
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-201.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00444 38th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed deno (denoland): 2.1.13, 2.2.13deno (crates.io): 2.1.13, 2.2.13+1 more product

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
denolanddenobefore 2.1.13; 2.2.0 to before 2.2.132.1.13, 2.2.13Patch availableCNA
—deno (crates.io)before 2.1.132.1.13Patch availableGHSA-7w8p-chxq-2789
—deno (crates.io)2.2.0 to before 2.2.132.2.13Patch availableGHSA-7w8p-chxq-2789
—deno_runtime (crates.io)before 0.212.00.212.0Patch availableGHSA-7w8p-chxq-2789
  • deno Vendordenoland Affected before 2.1.13; 2.2.0 to before 2.2.13 Fixed in 2.1.13, 2.2.13 Patch available CNA
  • deno (crates.io) Vendor— Affected before 2.1.13 Fixed in 2.1.13 Patch available GHSA-7w8p-chxq-2789
  • deno (crates.io) Vendor— Affected 2.2.0 to before 2.2.13 Fixed in 2.2.13 Patch available GHSA-7w8p-chxq-2789
  • deno_runtime (crates.io) Vendor— Affected before 0.212.0 Fixed in 0.212.0 Patch available GHSA-7w8p-chxq-2789

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:*before 2.1.13; 2.2.0 to before 2.2.13Vulnerabledenoland
  • cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:* Versions before 2.1.13; 2.2.0 to before 2.2.13 Vulnerable ·denoland

Remediation

  • Fix · CNA deno (denoland) Fixed in 2.1.13, 2.2.13
  • Fix · GHSA-7w8p-chxq-2789 deno (crates.io) Fixed in 2.1.13 Advisory →
  • Fix · GHSA-7w8p-chxq-2789 deno (crates.io) Fixed in 2.2.13 Advisory →
  • Fix · GHSA-7w8p-chxq-2789 deno_runtime (crates.io) Fixed in 0.212.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-48934
  2. 2026-10-03 Alias added: GHSA-7w8p-chxq-2789

References

  • TI-2026-21627 Deno has a Command Injection via Incomplete shell metacharacter blocklist in node:child_process CVSS 3.1CRITICAL 9.8
  • TI-2025-17782 Deno's AES GCM authentication tags are not verified CVSS 4.0HIGH 7.7
  • TI-2024-18537 *const c_void / ExternalPointer unsoundness leading to use-after-free CVSS 3.1HIGH 8.8
  • TI-2024-18536 Deno arbitrary file descriptor close via `op_node_ipc_pipe()` leading to permission prompt bypass CVSS 3.1HIGH 8.8
  • TI-2023-12990 Deno is vulnerable to interactive `run` permission prompt spoofing via improper ANSI neutralization CVSS 3.1HIGH 8.8
  • TI-2023-11328 Regular expression denial of service in deno CVSS 3.1HIGH 7.5
See all 37 →

Sources