CVE-2025-61787

Deno is Vulnerable to Command Injection on Windows During Batch File Execution

HIGH
8.1
CVSS Score
Published: October 8, 2025 at 12:59 AM UTC
Updated: October 8, 2026 at 01:10 PM UTC
2 products affected across 2 vendorsDenoDeno· also runs on 1 platform

Using deno by denoland?

Get instant alerts when new vulnerabilities affect deno - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.1
Exploit prediction
EPSS 2%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

95%
v ≤ 2.2.152.3.0 ≤ v < 2.5.3*
Affected range stops below 2.5.3, so it looks safe — our inference, not a vendor statement
microsoft-windows (environment)
v < 2.2.15>= 2.3.0, < 2.5.3
Affected range stops below 2.2.15, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.5.3, so it looks safe — our inference, not a vendor statement

Runs on — not affected

The affected product only carries this flaw when running on these platforms. The platforms themselves are not vulnerable.

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (5)

x_refsource_CONFIRMExploitVendor Advisory
Source: cverecord
https://github.com/denoland/deno/security/advisories/GHSA-m2gf-x3f6-8hq3
x_refsource_MISCIssue TrackingPatch
Source: cverecord
https://github.com/denoland/deno/pull/30818
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/denoland/deno/releases/tag/v2.2.15
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/denoland/deno/releases/tag/v2.5.3

SSVC — Action Prioritization

SSVCPoCNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

8.1HIGHGitHub_M
Attack Vector
NETWORK
Complexity
HIGH
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-77

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card