CVE-2026-39862CWE-78

Tophat has a Command Injection Vulnerability When Accessing a Maliciously Crafted Tophat Link

Medium · published April 8, 2026

CVSS v4.0
6.3
EPSS
1%
Percentile
64.1
In the wild
Unconfirmed
What it is

Tophat is a mobile applications testing harness. Prior to 2.5.1, Tophat is affected by remote code execution via crafted tophat:// or http://localhost:29070 URLs. The arguments query parameter flows unsanitized from URL parsing through to /bin/bash -c execution, allowing an attacker to execute arbitrary commands on a developer's macOS workstation. Any developer with Tophat installed is vulnerable. For previously trusted build hosts, no confirmation dialog appears. Attacker commands run with the user's permissions. This vulnerability is fixed in 2.5.1.

The record
Technical detail
CVSS v4.0
6.3 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
EPSS
0.01053 · 64.1th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2026-04-08T19:50Z
EPSS history
Timeline
  • 08 APR 19:50Z
    Tophat has a Command Injection Vulnerability When Accessing a Maliciously Crafted Tophat Link
    cvelistv5