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

> CVE-2026-39862: Tophat has a Command Injection Vulnerability When Accessing a Maliciously Crafted Tophat Link. CVSS 8.8 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-39862
Last updated: 2026-07-24T21:10:00Z

- Published: 2026-04-08 19:50 UTC · Updated: 2026-07-24 21:10 UTC · Assigner: GitHub\_M
- CVSS: 8.8 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.55%, 46th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-78

## Description

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.

## Affected vendors and products

- Shopify: tophat

## Tracked companies

- [Shopify](https://rewindex.com/company/shopify.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-39862)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-39862)
- [https://github.com/Shopify/tophat/pull/139](https://github.com/Shopify/tophat/pull/139)
- [https://github.com/Shopify/tophat/security/advisories/GHSA-8x8g-6rv5-mgg2](https://github.com/Shopify/tophat/security/advisories/GHSA-8x8g-6rv5-mgg2)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-39862 · Markdown: https://rewindex.com/cve/CVE-2026-39862.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-39862 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:14:28.133Z
