CVE-2025-61787
HIGH 8.1CVSS 3.1Deno is Vulnerable to Command Injection on Windows During Batch File Execution
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.
- Published
- 8 Oct 2025
- Last modified
- 8 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-77
- Also known as
- GHSA-m2gf-x3f6-8hq3
- Sources
- NVDJSONOSV GHSA-m2gf-x3f6-8hq3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | deno | denocpe:2.3:a:deno:deno:*:*:*:*:*:*:*:* |
<= 2.2.15 | |
| NVD | deno | denocpe:2.3:a:deno:deno:*:*:*:*:*:*:*:* |
>= 2.3.0, < 2.5.3 | 2.5.3 |
| OSV | crates.io | deno | < 2.5.2 | 2.5.2 |
References
- https://github.com/denoland/deno/commit/8a0990ccd37bafd8768176ca64b906ba2da2d822 · Patch, WEB
- https://github.com/denoland/deno/pull/30818 · Issue Tracking, Patch, WEB
- https://github.com/denoland/deno/releases/tag/v2.2.15 · Release Notes, WEB
- https://github.com/denoland/deno/releases/tag/v2.5.3 · Release Notes
- https://github.com/denoland/deno/security/advisories/GHSA-m2gf-x3f6-8hq3 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-61787 · ADVISORY
- https://github.com/denoland/deno · PACKAGE
- https://github.com/denoland/deno/releases/tag/v2.5.2 · WEB
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 8 Oct 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 8 Oct 2025)