{"id":"CVE-2026-49983","published":"2026-06-23T17:16:17Z","modified":"2026-06-23T17:54:51Z","title":"Deno: process.loadEnvFile() bypasses env permission checks and mutates process.env with only read access","vendor":"denoland","product":"deno","tier":"tail","description":{"text":"Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to 2.8.1, environment access is gated by the env permission. You can deny it with --deny-env, or restrict it to a specific allowlist with --allow-env=FOO,BAR. The expectation is that a program running without env permission cannot change process.env. process.loadEnvFile() (the Node-compatible API for loading variables from a .env file) does not honor this. It only checks that the program has read permission for the dotenv file, then writes every key in that file into the process environment — even when env access is denied. In effect, --allow-read plus a writable or attacker-controlled .env file is enough to defeat --deny-env. This vulnerability is fixed in 2.8.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0014,"percentile":0.03398,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-4c8g-jvcx-v4hv","tags":["x_refsource_CONFIRM"]}],"priority":{"score":4.3,"factors":[{"name":"EPSS percentile","points":0.68},{"name":"CVSS severity","points":3.64}]},"vendorSlug":"denoland","affectedVersions":[{"vendor":"denoland","product":"deno","versions":["< 2.8.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-23T17:54:45.354967Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"deno","vulnerableRanges":["<2.8.1"],"patched":["2.8.1"],"from":["GHSA-4c8g-jvcx-v4hv"],"provenance":"source"}],"summary":{"text":"Deno's process.loadEnvFile() API, the Node-compatible function for loading variables from a .env file, fails to honor the env permission gate, so it can write variables into process.env even when environment access has been denied. An attacker with local access and low privileges, and with read permission on a dotenv file they can control or modify, can use it to inject arbitrary environment variables into a program that was started with --deny-env or a restricted --allow-env allowlist, provided that program also has --allow-read.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:29Z"},"euvd":{"id":"EUVD-2026-38543","exploited":false,"provenance":"source"}}