CVE-2026-58191

Appium: Reflected XSS / arbitrary JS in @appium/base-driver /test/guinea-pig* routes

Published Jul 8, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
Appium is a cross-platform automation framework for all kinds of apps, built on top of the W3C WebDriver protocol. Prior to 10.7.0, Appium's base-driver unconditionally mounts the /test/guinea-pig, /test/guinea-pig-scrollable, and /test/guinea-pig-app-banner routes, and compileLodashTemplate reflects the throwError query parameter, comments POST field, and User-Agent request header into HTML without escaping, allowing reflected cross-site scripting and arbitrary JavaScript execution on the server origin. This issue is fixed in version 10.7.0.

Analysis

AI-generated

Technical impact

The vulnerability lies in Appium's base-driver, which renders the throwError query parameter, comments POST field, and User‑Agent header directly into the HTML of the /test/guinea‑pig routes without escaping. This allows an attacker to inject malicious JavaScript that is reflected back to the client and executed within the context of the server origin, providing a vector for arbitrary code execution and potentially compromising users who interact with those pages. The weakness corresponds to CWE‑79 (Cross‑Site Scripting) and CWE‑489 (Improper Restriction of Possible Intrinsic Execution Context).

Affected Systems

All Appium deployments that use the default /test/guinea‑pig, /test/guinea‑pig‑scrollable, and /test/guinea‑pig‑app‑banner endpoints in a version prior to 10.7.0 are affected. This includes the open‑source Appium distribution and any enterprise builds that have not applied the fix available in 10.7.0. The impact is limited to requests sent to those specific test routes; the rest of the Appium server is unaffected.

Risk and Exploitability

With a CVSS score of 6.5 the vulnerability is considered moderate. The EPSS score indicates a probability of less than 1%, and the vulnerability is not listed in CISA's KEV catalog. Attackers who can reach the Appium server can exploit the flaw by sending a crafted HTTP request to one of the unprotected test routes, causing the reflected payload to be executed on the server origin. As a result, prompt mitigation is recommended, though the likelihood of exploitation remains low.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Appium to version 10.7.0 or later, which removes the vulnerable route handling.
  • If upgrade is not yet possible, disable or delete the /test/guinea‑pig, /test/guinea‑pig‑scrollable, and /test/guinea‑pig‑app‑banner endpoints by configuring the base‑driver or editing the routing configuration.
  • Restrict network access to the Appium server so that only trusted internal hosts can reach the test routes, for example by placing the server behind a firewall or configuring host‑based access controls.

Generated by OpenCVE AI on August 1, 2026 at 15:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-3wgp-x9p5-c7cc Appium: Reflected XSS / arbitrary JS in @appium/base-driver /test/guinea-pig* routes
History
Type Values Removed Values Added
First Time appeared Appium
Appium appium
Vendors & Products Appium
Appium appium
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Appium is a cross-platform automation framework for all kinds of apps, built on top of the W3C WebDriver protocol. Prior to 10.7.0, Appium's base-driver unconditionally mounts the /test/guinea-pig, /test/guinea-pig-scrollable, and /test/guinea-pig-app-banner routes, and compileLodashTemplate reflects the throwError query parameter, comments POST field, and User-Agent request header into HTML without escaping, allowing reflected cross-site scripting and arbitrary JavaScript execution on the server origin. This issue is fixed in version 10.7.0.
Title Appium: Reflected XSS / arbitrary JS in @appium/base-driver /test/guinea-pig* routes
Weaknesses CWE-489
CWE-79
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N'}

Weaknesses
  • CWE-489

    Active Debug Code

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 9, 2026, 2:40 PM
Reserved
Jun 29, 2026, 5:09 PM
Status
Analyzed
Published
Jul 8, 2026, 9:16 PM
Modified
Jul 15, 2026, 8:31 PM