CVE-2026-58191 Appium: Reflected XSS / arbitrary JS in @appium/base-driver /test/guinea-pig* routes
Attackers can execute arbitrary JavaScript via reflected XSS in Appium's test routes, potentially compromising the server origin.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-58191?
CVE-2026-58191 is a medium-severity cross-site scripting vulnerability in appium, published on 8 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Which versions are affected by CVE-2026-58191?
2 open source packages ship an affected version, including @appium/base-driver. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
@appium/base-driver npm | All versions | 10.7.0 |
@appium/base-driver npm | All versions | 10.7.0 |
Products include Appium Appium\/Base-Driver.
How do I fix CVE-2026-58191?
Upgrade @appium/base-driver to 10.7.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-58191 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58191 exists.
Public exploit code: 1 Nuclei template.
Sources
Also known as GHSA-3wgp-x9p5-c7cc.