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

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Published: 2026-04-08T19:50:05.156Z
- Modified: 2026-07-24T21:10:00.143Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Shopify tophat: < 2.5.1; before 2.5.1

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Shopify/tophat/security/advisories/GHSA-8x8g-6rv5-mgg2> (vendor-advisory)
- <https://github.com/Shopify/tophat/pull/139> (issue-tracking)

## Sources

- CVE List: [CVE-2026-39862](https://www.cve.org/CVERecord?id=CVE-2026-39862), CVE Terms of Use, modified 2026-04-09
- NVD: [CVE-2026-39862](https://nvd.nist.gov/vuln/detail/CVE-2026-39862), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-39862 · Whole record: https://cve.day/CVE-2026-39862.json · Rebuilt by cve.day 2026-11-25T22:59:18.308Z
