CVE-2025-59834
JavaScript vulnerability analysis and mitigation

Overview

ADB MCP Server, a Model Context Protocol server for interacting with Android devices through ADB, was found to contain a critical command injection vulnerability (CVE-2025-59834) in versions 0.1.0 and prior. The vulnerability was discovered on September 24, 2025, and publicly disclosed on September 25, 2025. The issue affects the MCP Server's tool definition and implementation, specifically in how it handles command execution (GitHub Advisory).

Technical details

The vulnerability stems from unsafe implementation of the executeAdbCommand() function which executes commands via string parameters and wraps the promise-based exec function. The inspect_ui tool, which relies on Node.js child process API exec, processes untrusted user input without proper validation. The vulnerability exists in the AdbUidumpSchema.shape implementation where args.device is passed directly to execPromise() without proper sanitization. The issue received a CVSS v3.1 score of 9.8 (Critical) with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, indicating remote exploitation with no required privileges or user interaction (GitHub Advisory).

Impact

The vulnerability allows attackers to perform user-initiated and remote command injection on a running MCP Server. When exploited through techniques like prompt injection, attackers can execute arbitrary commands on the host running the MCP Server by using special shell characters in the input (GitHub Advisory).

Mitigation and workarounds

The issue has been patched via commit 041729c. The recommended mitigation is to avoid using exec and instead use execFile, which pins the command and provides the arguments as array elements. For user input that is not a command-line flag, it is recommended to use the -- notation to terminate command and command-line flags, indicating that the text after the double dash notation is benign value (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-65513HIGH7.5
  • JavaScriptJavaScript
  • mcp-fetch-server
NoNoDec 09, 2025
CVE-2025-67716MEDIUM5.7
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 11, 2025
CVE-2025-67490MEDIUM5.4
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management