CVE-2026-49983

Deno: process.loadEnvFile() bypasses env permission checks and mutates process.env with only read access

MEDIUM
5.2
CVSS Score
Published: June 23, 2026 at 05:16 PM UTC
Updated: October 25, 2026 at 11:10 PM UTC
2 products affected across 2 vendorsDenoDeno

Using deno by denoland?

Get instant alerts when new vulnerabilities affect deno - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.2
Exploit prediction
EPSS 0.1%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

95%
2.3.0 ≤ v < 2.8.1
Affected range stops below 2.8.1, so it looks safe — our inference, not a vendor statement
v < 2.8.1
Affected range stops below 2.8.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (1)

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

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.2MEDIUMGitHub_M
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-863

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card