Skip to content
Threat Feed
high advisory

Arbitrary File Write in appium-mcp-server via Path Traversal

The appium-mcp-server package up to version 0.1.61 contains a path traversal vulnerability in file writing tools, allowing unauthenticated attackers to overwrite sensitive system files.

CVE search metadata

CVE search record: CVE-2026-84201. Severity: high. CVSS: 7.1. KEV: no. Product: appium-mcp-server (<= 0.1.61). Brief: Arbitrary File Write in appium-mcp-server via Path Traversal. Brief link: https://feed.craftedsignal.io/briefs/2026-09-cve-2026-84201/

The appium-mcp-server package, specifically versions up to and including 0.1.61, is susceptible to a path traversal vulnerability within the write_file and write_files_batch tools. This flaw arises from a critical lack of input validation and path normalization when handling file path arguments. An attacker can exploit this by providing malicious file paths - including absolute paths or relative paths containing directory traversal sequences like "../" - to escape the intended PROJECT_ROOT directory.

Successful exploitation allows an attacker to overwrite arbitrary files on the host system. The impact of this vulnerability is significant, as the overwritten file content is written with the privileges of the underlying server process. Attackers can target shell profiles (e.g., .bashrc or .zshrc), SSH authorized_keys files, or service configuration files to facilitate persistence or achieve arbitrary command execution. This vulnerability is particularly dangerous in environments where the server runs with elevated or high-privileged user access.

Impact

The vulnerability allows for unauthorized file modification, which can lead to complete system compromise via remote code execution or credential theft. If the server process runs as a privileged user, an attacker can modify system-wide configuration files or user-specific shell initialization scripts, enabling code execution upon the next login or service restart. No specific victim sector is targeted; the vulnerability affects all deployments of appium-mcp-server version 0.1.61 or earlier.

Recommendation

  • Upgrade the appium-mcp-server package to a version beyond 0.1.61 that includes path normalization or strict directory validation for file operations.
  • Audit file system access logs for the process user running the appium-mcp-server to detect unauthorized writes to locations outside the designated project root directory.
  • Run the appium-mcp-server process under a restricted, low-privilege service account to limit the impact of potential arbitrary file overwrites.
  • Enforce strict file system permissions on critical configuration directories and user profile files to prevent unauthorized modification by the service user.

Mitigations

Upgrade appium-mcp-server to a version greater than 0.1.61

immediate IT Operations

CVE-2026-84201