# CVE-2026-39862: Tophat has a Command Injection Vulnerability When Accessing a Maliciously Crafted Tophat Link

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-08 · Modified: 2026-04-09
- Record: https://cvemate.com/vulnerability/CVE-2026-39862 · JSON: https://cvemate.com/vulnerability/CVE-2026-39862/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.645%, percentile 52.349%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- shopify tophat: \< 2.5.1

## References

- <https://github.com/Shopify/tophat/security/advisories/GHSA-8x8g-6rv5-mgg2>
- <https://github.com/Shopify/tophat/pull/139>

---

Data as of 2026-12-05T04:51:10.614Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
