Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. appium-mcp
  4. ›
  5. GHSA-x975-rgx4-5fh4

GHSA-x975-rgx4-5fh4: appium-mcp: Unescaped Locator Data XSS in MCP-UI Resource (createLocatorGeneratorUI)

June 19, 2026

appium-mcp’s 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.

References

  • github.com/advisories/GHSA-x975-rgx4-5fh4
  • github.com/appium/appium-mcp/commit/e222bbbd6fe2b656a320efcd143563f08061a83d
  • github.com/appium/appium-mcp/releases/tag/v1.85.10
  • github.com/appium/appium-mcp/security/advisories/GHSA-x975-rgx4-5fh4

Code Behaviors & Features

Detect and mitigate GHSA-x975-rgx4-5fh4 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.85.10

Fixed versions

  • 1.85.10

Solution

Upgrade to version 1.85.10 or above.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/appium-mcp/GHSA-x975-rgx4-5fh4.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:13 +0000.