# CVE-2026-49983: Deno: process.loadEnvFile() bypasses env permission checks and mutates process.env with only read access

- Severity: Medium 5.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.10%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-06-16T19:04:57.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-4c8g-jvcx-v4hv
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- denoland deno: < 2.8.1
- deno (crates.io): before 2.8.1
- deno deno: from 2.3.0 before 2.8.1

## Every score

- GitHub_M: CVSS:3.1 5.2 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.2 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`

## 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)

## Sources

- CVE List: [CVE-2026-49983](https://www.cve.org/CVERecord?id=CVE-2026-49983), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-4c8g-jvcx-v4hv](https://github.com/advisories/GHSA-4c8g-jvcx-v4hv), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-49983](https://nvd.nist.gov/vuln/detail/CVE-2026-49983), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-49983 · Whole record: https://cve.day/CVE-2026-49983.json · Rebuilt by cve.day 2026-11-25T22:59:25.501Z
