All vulnerabilities

Servers and applications

CVE-2025-48934

Deno.env.toObject() ignores the variables listed in --deny-env and returns all environment variables

Severity
Medium 5.5
Published
3 Jun 2025
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.1.13, 2.2.13
Also known as
GHSA-7w8p-chxq-2789
Sources
NVD, Project advisories (GitHub)

Description

Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to versions 2.1.13 and 2.2.13, the `Deno.env.toObject` method ignores any variables listed in the `--deny-env` option of the `deno run` command. When looking at the documentation of the `--deny-env` option this might lead to a false impression that variables listed in the option are impossible to read. Software relying on the…

Affected software

SoftwareAffected versions
DenoServers and applications · cpe:a:deno:deno
  • Every version before 2.1.13
  • From 2.2.0 before 2.2.13
DenoServers and applications · github:denoland/deno
  • Every version before 2.1.13

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2025-48934
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2025-48934
  • GitHub Advisory Database https://github.com/advisories/GHSA-7w8p-chxq-2789
  • github.com https://github.com/denoland/deno/security/advisories/GHSA-7w8p-chxq-2789