Skip to main content

appium-mcp CVE-2026-58500

HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-07-13 GitHub_M
8.2
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts app with XSS in element attributes
  2. Delivery
    Victim runs generate_locators against the app
  3. Exploit
    Unescaped attributes interpolated into MCP UI HTML
  4. Execution
    Client renders resource, injected script executes
  5. Persist
    postMessage invokes arbitrary MCP tools
  6. Impact
    Screenshots/page source exfiltrated

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires that the attacker control the UI attributes of the app under test (the text, content-desc, resource-id, or locator selector values Appium reads from the live session) AND that a victim runs the generate_locators tool against that app and renders the resulting MCP UI resource in an MCP client that honors window.parent.postMessage tool calls. Exploitation is limited by required user interaction (UI:R - the victim must invoke the tool and render the resource), by the need for attacker influence over the target app's element metadata, and by the client actually processing postMessage-driven tool invocations; it does not work against apps whose UI the attacker cannot influence, and it is fully remediated in appium-mcp 1.85.10.

Impact

The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N, base 8.2) reflects a scope-changing XSS: no privileges on the server, but the victim must render the malicious MCP UI resource (UI:R), and success pivots into MCP tool execution on the client (S:C). Real-world risk is gated by a meaningful precondition not captured by AV:N alone - the attacker must control the UI of the app under test and get the victim to run generate_locators against it, which is a targeted/supply-chain-style scenario rather than mass-exploitable internet exposure. No EPSS score, KEV listing, or SSVC decision data was provided, so exploitation probability cannot be quantified from the input; there is no evidence of active exploitation and no standalone POC beyond the vendor's regression tests. Net: a legitimately high-impact issue for anyone running appium-mcp against untrusted apps, but with a limited victim population and required user interaction it is a prioritize-if-you-use-it rather than an emergency-for-everyone flaw.

Exploit ScenarioDerived

An attacker publishes or supplies a mobile app whose element text/content-desc/resource-id contains an XSS payload such as an img onerror that calls window.parent.postMessage. A tester using an AI assistant runs the generate_locators tool against that app; the returned MCP UI resource is rendered in the victim's MCP client, the script executes, and it silently invokes registered MCP tools (e.g., capture screenshots or dump page source). No standalone POC is published, but the fix commit includes tests demonstrating the injection strings.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 13, 2026

Cross-site scripting in appium-mcp (the Appium MCP server) versions <= 1.85.9 lets an attacker who controls the mobile app under test inject arbitrary HTML/JavaScript into the MCP UI resource returned by the generate_locators tool, because createLocatorGeneratorUI interpolates element attributes (text, content-desc, resource-id, selector, strategy) into an HTML template without escaping. When a victim's MCP client renders the resource, the injected script runs and can call arbitrary registered MCP tools via window.parent.postMessage (screenshots, page-source reads, etc.). No public exploit identified at time of analysis, though the fix commit ships XSS test cases; fixed in 1.85.10.

RemediationAI

Vendor-released patch: upgrade appium-mcp to 1.85.10 or later, which HTML-escapes tagName, text, contentDesc, resourceId, selector and strategy via a new escapeHtml() helper and replaces the inline onclick handler with data-strategy/data-selector attributes plus a delegated click listener (see commit e222bbbd6fe2b656a320efcd143563f08061a83d and advisory GHSA-x975-rgx4-5fh4). If you cannot upgrade immediately, only run generate_locators against trusted apps whose UI content you control, since the exploit requires attacker-controlled element attributes in the app under test; avoid pointing the server at untrusted or third-party apps. As an additional control, harden or sandbox the MCP client's rendering of UI resources and restrict which MCP tools can be invoked via window.parent.postMessage so that a rogue resource cannot trigger sensitive capabilities - noting this reduces functionality of legitimate interactive UI resources.

Affected Packages

npm appium-mcp fix: 1.85.10

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

appium-mcp is a Node/TypeScript MCP (Model Context Protocol) server that exposes Appium mobile-automation capabilities as tools to AI assistants. The root cause is CWE-79 (improper neutralization of input during web page generation): in src/ui/mcp-ui-utils.ts (~lines 720-740) the createLocatorGeneratorUI function builds an HTML template literal, embedding element.text, element.contentDesc, element.resourceId, selector and strategy directly, and additionally embeds selector/strategy into an inline onclick JavaScript string using only a backtick escape that is insufficient against HTML event-attribute or single-quote breakout. The data flows from an attacker-controlled Appium session: getPageSource(driver) (locators.ts:57) reads the app's page-source XML, which is parsed in source-parsing.ts with only newline normalization, then rendered without HTML-context escaping. The sibling function createPageSourceInspectorUI already escapes its output, confirming the gap is an oversight. MCP UI resources are HTML rendered in the client and can message the parent frame, so injected script can drive the MCP tool bus.

Know when Appium Mcp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.2 HIGH
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N
vuln.today AI 8.2 HIGH

Remote unauthenticated injection but victim must render the resource (UI:R); script crosses into the MCP client to run tools (S:C), yielding high integrity and low confidentiality impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:H/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
High
Availability
None

DescriptionCVE.org

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 generate_locators 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.

Executive ViewAI

Why It Matters

Appium-mcp testing server (versions through 1.85.9) contains an XSS vulnerability allowing malicious mobile applications to commandeer the testing infrastructure and exfiltrate test data and application intelligence. QA and security teams face data theft and espionage risks when analyzing third-party or supply-chain-compromised applications.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Low
niche Appium MCP server npm package for mobile test automation
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Affected Products (CPE)CVE.org

cpe:2.3:a:appium:appium-mcp:*:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy