CVE-2025-61787: Command Injection in Deno on Windows Batch File Execution
- Vendor
- Deno
CVE-2025-61787 is a command injection vulnerability in the Deno JavaScript, TypeScript, and WebAssembly runtime on Windows. It affects Deno versions prior to 2.5.3 and 2.2.15 when batch files such as .bat or .cmd are executed. The issue arises from Windows process creation semantics: CreateProcess() implicitly invokes cmd.exe when launching batch files, even if the caller does not explicitly include cmd.exe in the command line. As a result, arguments passed to a batch file may be interpreted by the Windows command processor, enabling improper neutralization of command-special characters and command-line injection. The vulnerability is classified as CWE-77.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can allow an attacker to inject unintended commands into the Windows command interpreter context when a vulnerable Deno process executes a batch file with attacker-controlled input. This can result in arbitrary command execution with the privileges of the Deno process. Depending on the runtime context, impact may include full compromise of confidentiality, integrity, and availability of the affected system, including data access or modification, execution of additional payloads, and service disruption.
Mitigation
If you can’t patch tonight, do this now.
Until patched, avoid executing batch files (.bat, .cmd, and similar) from Deno on Windows, especially where any portion of the command line or arguments may be influenced by untrusted input. Carefully validate and constrain command-line arguments, reject shell metacharacters and unexpected tokens, and prefer invoking non-shell executables directly rather than batch wrappers. Reducing or eliminating attacker control over arguments materially lowers exploitability.
Remediation
Patch, then assume compromise.
Upgrade Deno to a fixed release. The provided advisory states that versions 2.5.3 and 2.2.15 fix CVE-2025-61787. Apply the vendor-provided updates and verify that Windows batch-file execution paths are handled safely in the deployed version. If operationally possible, review any code paths that invoke external commands and ensure they do not rely on unsafe execution of .bat or .cmd files with untrusted arguments.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-61787 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2025-61787 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-61787?
- Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2025-61787.
- Is there a patch for CVE-2025-61787?
- Upgrade Deno to a fixed release. The provided advisory states that versions 2.5.3 and 2.2.15 fix CVE-2025-61787.
- What products are affected by CVE-2025-61787?
- Deno.
- How severe is CVE-2025-61787?
- CVE-2025-61787 has a CVSS v3.1 score of 8.1 (High) and an EPSS score of 3.2% (89th percentile) as of Sep 25, 2026.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.