CVE-2026-58500: MCP Appium: Unescaped Locator Data XSS in MCP-UI Resource (createLocatorGeneratorUI)
MCP Appium is an MCP server that provides AI assistants with tools to automate mobile app testing on Android and iOS. In versions prior to 1.85.10, the createLocatorGeneratorUI function interpolates attacker-controlled element attributes — text, content-desc, resource-id, and locator selector values — directly into an HTML template literal without any HTML or JavaScript context escaping. An attacker who controls the UI of the app under test can inject arbitrary HTML and JavaScript into the MCP UI resource returned by the generatelocators tool. When a victim's MCP client renders this resource, the injected script executes and can invoke arbitrary MCP tools via window.parent.postMessage, leading to unauthorized MCP tool execution such as taking screenshots, reading page source, or any other registered capability. This issue has been fixed in version 1.85.10.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
MCP Appiumto a version that resolves this vulnerability.Fixed in 1.85.10 - Compensating control
Restrict/limit what the MCP client (that renders the MCP-UI resource) is allowed to communicate with via window.parent.postMessage until all systems are upgraded, to prevent injected scripts from invoking MCP tools such as screenshot capture or reading page source.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-58500?
The severity of CVE-2026-58500 is high with a score of 8.2.
How do I fix CVE-2026-58500?
To fix CVE-2026-58500, upgrade to MCP Appium version 1.85.10 or later.
What type of vulnerability is CVE-2026-58500?
CVE-2026-58500 is a Cross-Site Scripting (XSS) vulnerability.
What components are affected by CVE-2026-58500?
CVE-2026-58500 affects the createLocatorGeneratorUI function in the MCP Appium software.
What are the potential impacts of CVE-2026-58500?
The potential impacts of CVE-2026-58500 include the execution of malicious scripts in the user's browser.