{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.8.1"
              },
              {
                "introduced": "2.3.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "CPE_RANGE"
            ]
          },
          "events": [
            {
              "introduced": "61574bb9c9c255d5c661add6c7464af30475c197"
            },
            {
              "fixed": "3e2030bc01776ce6b4ca355b1e78c4cb98c82dca"
            }
          ],
          "repo": "https://github.com/denoland/deno",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-4c8g-jvcx-v4hv"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49983.json"
  },
  "details": "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.",
  "id": "CVE-2026-49983",
  "modified": "2026-07-15T01:49:04.962061279Z",
  "published": "2026-06-23T17:16:17.026Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49983.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/denoland/deno/security/advisories/GHSA-4c8g-jvcx-v4hv"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-49983"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Deno: process.loadEnvFile() bypasses env permission checks and mutates process.env with only read access"
}