CVE-2026-43910
JSON

8.2high

Appium java-client Allows Network Pivot via Unvalidated directConnect Redirect in AppiumCommandExecutor

Severity
8.2high CVSS:3.1 by GitHub_M
Exploit likelihood
0.30% (higher than 24% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-28f5-38xr-jh2w

Description

Appium Java Client is the Java language binding for writing Appium tests that conform to the W3C WebDriver protocol. From 8.2.1 until 10.1.1, when directConnect(true) is enabled, AppiumCommandExecutor.setDirectConnect() reads the directConnectHost, directConnectPort, and directConnectPath fields from the server's NEW_SESSION response and rebuilds the client's server URL from them, validating only that the protocol is https, with no host allowlist or IP validation; a rogue or compromised server can therefore redirect all subsequent session traffic to an arbitrary destination, enabling full interception of session traffic and a server-side request forgery pivot to internal hosts, including cloud metadata (IMDS) credential theft. This vulnerability is fixed in 10.1.1.

Affected

Product or packageVersionsReported by
appium java-client>= 8.2.1, < 10.1.1, from 8.2.1 before 10.1.1CVE List, NVD
io.appium:java-client (Maven)from 8.2.1 before 10.1.1GitHub Advisory Database

All scores

GitHub_M8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
GitHub8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N

Classification

CWE-441CWE-918

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

Appium Java Client is the Java language binding for writing Appium tests that conform to the W3C WebDriver protocol. From 8.2.1 until 10.1.1, when directConnect(true) is enabled, AppiumCommandExecutor.setDirectConnect() reads the directConnectHost, directConnectPort, and directConnectPath fields from the server's NEW_SESSION response and rebuilds the client's server URL from them, validating only that the protocol is https, with no host allowlist or IP validation; a rogue or compromised server can therefore redirect all subsequent session traffic to an arbitrary destination, enabling full interception of session traffic and a server-side request forgery pivot to internal hosts, including cloud metadata (IMDS) credential theft. This vulnerability is fixed in 10.1.1.

GitHub Advisory Database

Summary

When directConnect(true) is enabled, appium/java-client unconditionally accepts directConnectHost, directConnectPort, and directConnectPath from the server's NEW_SESSION response and silently redirects all subsequent session traffic to the attacker-specified endpoint — with no allowlist, no host validation, and no user notification.

Affected Code

  • AppiumCommandExecutor.java (line 196–219): setDirectConnect() builds a new URL from server-supplied fields and calls overrideServerUrl(newUrl) without validating host/IP.
  • DirectConnect.java: getUrl() constructs protocol://host:port/path with no allowlist.

Root Cause

Only the protocol is validated (must equal "https"). The destination host and port are never checked against any allowlist or denylist.

PoC (confirmed)

A rogue server injecting directConnectHost=127.0.0.1:4443 causes the client to silently redirect all post-session commands:

[bootstrap] POST /wd/hub/session [bootstrap] Injecting directConnect -> https://127.0.0.1:4443/wd/hub [redirect-target] HIT #1: GET /wd/hub/session/poc-session-001/source [redirect-target] HIT #2: DELETE /wd/hub/session/poc-session-001

Original source code unmodified — confirmed via git diff HEAD (empty).

Evidence Screenshots

Screenshot 1 — Rogue server capturing redirected traffic:

1

Screenshot 2 — Java client processing response from attacker host:

2

Impact

  • Full interception of session traffic
  • Network pivot to internal hosts (RFC-1918, 169.254.169.254)
  • Cloud credential theft via IMDS endpoint
  • Escalates to ~8.1 High in CI/CD environments where directConnect(true) is set in shared base configuration

Suggested Fix

Add allowlist validation before overrideServerUrl() is called, and/or block RFC-1918/loopback/link-local destinations by default.

poc_appium_directconnect.zip

NVD (es)

Appium Java Client es el enlace de lenguaje Java para escribir pruebas de Appium que se ajustan al protocolo W3C WebDriver. Desde la 8.2.1 hasta la 10.1.1, cuando directConnect(true) está habilitado, AppiumCommandExecutor.setDirectConnect() lee los campos directConnectHost, directConnectPort y directConnectPath de la respuesta NEW_SESSION del servidor y reconstruye la URL del servidor del cliente a partir de ellos, validando solo que el protocolo es HTTPS, sin una lista de permitidos de host o validación de IP; un servidor malicioso o comprometido puede, por lo tanto, redirigir todo el tráfico de sesión subsiguiente a un destino arbitrario, lo que permite la intercepción completa del tráfico de sesión y una falsificación de petición del lado del servidor como pivote hacia hosts internos, incluyendo el robo de credenciales de metadatos de la nube (IMDS). Esta vulnerabilidad está corregida en la 10.1.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-43910 changed 2026-07-28CVE Terms of Use
GitHub Advisory DatabaseGHSA-28f5-38xr-jh2w changed 2026-07-28CC-BY-4.0
NVDCVE-2026-43910 changed 2026-10-24Public domain