CVE-2025-61787Deno Command Injection
NVDCVSS scored by security-advisories@github.com
Vulnerability Summary
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.
CVSS v3.1 Base Metrics — Score 8.1 (HIGH)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- Deno <= 2.2.15
- Deno >= 2.3.0 and < 2.5.3
- denoland deno >= 2.3.0, < 2.5.3
- denoland deno < 2.2.15
- Deno 2.5.3
What to do
Prioritize this fix. Exploit code is public, so attacks can follow quickly.
- Check whether you run Deno and which version.
- Update to a patched version listed above, then confirm the new version.
- Review logs and exposed services for signs of earlier compromise.
Timeline
- Oct 8, 2025Published
- Oct 8, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Deno CVEsYou are reading CVE-2025-61787. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Patchhttps://github.com/denoland/deno/commit/8a0990ccd37bafd8768176ca64b906ba2da2d822
- Patchhttps://github.com/denoland/deno/pull/30818
- Referencehttps://github.com/denoland/deno/releases/tag/v2.2.15
- Referencehttps://github.com/denoland/deno/releases/tag/v2.5.3
- Exploithttps://github.com/denoland/deno/security/advisories/GHSA-m2gf-x3f6-8hq3
Data last checked: Nov 24, 2026 10:13 UTC