Vulnerabilities · 2025 · Deno
CVE-2025-61787
Deno vulnerability
Deno is a JavaScript, TypeScript, and WebAssembly runtime. Versions prior to 2.5.3 and 2.2.15 are vulnerable to Command Line Injection attacks on Windows when batch files are executed. In Windows, ``CreateProcess()`` always implicitly spawns ``cmd.exe`` if a batch file (.bat, .cmd, etc.) is being executed even if the application does not specify it via the command line. This makes Deno vulnerable to a command injection attack on Windows. Versions 2.5.3 and 2.2.15 fix the issue.
Affected products
Deno. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Deno runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/denoland/deno/security/advisories/GHSA-m2gf-x3f6-8hq3 · Exploit
- github.com/denoland/deno/commit/8a0990ccd37bafd8768176ca64b906ba2da2d822 · Patch
- github.com/denoland/deno/pull/30818 · Patch
- github.com/denoland/deno/releases/tag/v2.2.15
- github.com/denoland/deno/releases/tag/v2.5.3
- nvd.nist.gov/vuln/detail/CVE-2025-61787
- github.com/denoland/deno/releases/tag/v2.5.2
- github.com/advisories/GHSA-m2gf-x3f6-8hq3
- nvd.nist.gov/vuln/detail/CVE-2025-61787
- cve.org/CVERecord?id=CVE-2025-61787
More vulnerabilities in Deno products
CVE-2026-22864CVE-2026-22863CVE-2025-61786CVE-2025-61785CVE-2025-48935CVE-2025-48934CVE-2025-48888CVE-2025-24015All 27
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.