CVE-2026-49983
MEDIUM 5.2CVSS 3.1Deno: process.loadEnvFile() bypasses env permission checks and mutates process.env with only read access
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.
- Published
- 23 Jun 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-863
- Also known as
- GHSA-4c8g-jvcx-v4hv
- Sources
- NVDJSONOSV GHSA-4c8g-jvcx-v4hvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.2 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.2 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | deno | denocpe:2.3:a:deno:deno:*:*:*:*:*:*:*:* |
>= 2.3.0, < 2.8.1 | 2.8.1 |
| OSV | crates.io | deno | < 2.8.1 | 2.8.1 |
References
- https://github.com/denoland/deno/security/advisories/GHSA-4c8g-jvcx-v4hv · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-49983 · ADVISORY
- https://github.com/denoland/deno · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 23 Jun 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Jun 2026)