CVE-2026-49983
Full vulnerability record from the local CVENow database.
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.
View original CVE JSON
{
"id": "CVE-2026-49983",
"sourceIdentifier": "[email protected]",
"published": "2026-06-23T18:18:04.190",
"lastModified": "2026-10-25T23:10:00.167",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "Deno es un entorno de ejecución de JavaScript, TypeScript y WebAssembly. Antes de la versión 2.8.1, el acceso al entorno está controlado por el permiso env. Se puede denegar con --deny-env, o restringirlo a una lista de permitidos específica con --allow-env=FOO,BAR. La expectativa es que un programa que se ejecuta sin el permiso env no pueda cambiar process.env. process.loadEnvFile() (la API compatible con Node para cargar variables de un archivo .env) no respeta esto. Solo verifica que el programa tenga permiso de lectura para el archivo dotenv, luego escribe cada clave de ese archivo en el entorno del proceso, incluso cuando el acceso env está denegado. En efecto, --allow-read más un archivo .env escribible o controlado por el atacante es suficiente para eludir --deny-env. Esta vulnerabilidad está corregida en la versión 2.8.1."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "denoland",
"product": "deno",
"versions": [
{
"version": "< 2.8.1",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
"baseScore": 5.2,
"baseSeverity": "MEDIUM",
"attackVector": "LOCAL",
"attackComplexity": "LOW",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "CHANGED",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 2.0,
"impactScore": 2.7
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-06-23T17:54:45.354967Z",
"id": "CVE-2026-49983",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Primary",
"description": [
{
"lang": "en",
"value": "CWE-863"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:*",
"versionStartIncluding": "2.3.0",
"versionEndExcluding": "2.8.1",
"matchCriteriaId": "4AB91EA0-218F-426D-AD0E-A8B3A2F0212E"
}
]
}
]
}
],
"references": [
{
"url": "https://github.com/denoland/deno/security/advisories/GHSA-4c8g-jvcx-v4hv",
"source": "[email protected]",
"tags": [
"Vendor Advisory"
]
}
]
}