PT-2026-50155 · Deno · Deno

·

CVE-2026-49983

·

Published

2026-06-16

·

Updated

2026-06-29

CVSS v3.1

5.2

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Deno versions prior to 2.8.1
Description Environment access is managed by the env permission, which can be restricted via --deny-env or an allowlist using --allow-env=FOO,BAR. The process.loadEnvFile() function, a Node-compatible API for loading variables from a .env file, fails to honor these restrictions. It only verifies that the program has read permission for the dotenv file and subsequently writes every key from that file into the process environment, even if environment access is explicitly denied. Consequently, combining --allow-read with a writable or attacker-controlled .env file allows the bypass of --deny-env.
Recommendations Update to version 2.8.1. As a temporary workaround, avoid using the process.loadEnvFile() function until the update is applied.

Exploit

Fix

Incorrect Authorization

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-49983
GHSA-4C8G-JVCX-V4HV

Affected Products

Deno