Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2025-61787: Command Injection in Deno on Windows Batch File Execution

Published Oct 8, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.1High · v3.1
EPSS3.2%89th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Deno
IdentifiersCVE-2025-61787CWE-77 · Improper Neutralization of Special…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
DenoDenoapplication
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity3Community discussion across Reddit, Mastodon, and other social sources.