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

Published Apr 8, 2026
·
Updated

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 Software

2 affected components
Tophat Tophat<2.5.1
Shopify Tophat<2.5.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Tophat to a version that resolves this vulnerability.

    Fixed in 2.5.1

Event History

Apr 8, 2026
CVE Published
via MITRE·07:50 PM
Data Sourced
via MITRE·07:50 PM
DescriptionWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-39862?

CVE-2026-39862 has a critical severity rating due to its potential for remote code execution.

2

How do I fix CVE-2026-39862?

To fix CVE-2026-39862, upgrade to Tophat version 2.5.1 or later.

3

What type of vulnerability is CVE-2026-39862?

CVE-2026-39862 is a command injection vulnerability that can allow remote code execution.

4

Which versions of Tophat are affected by CVE-2026-39862?

Versions of Tophat prior to 2.5.1 are affected by CVE-2026-39862.

5

How does CVE-2026-39862 exploit software through URLs?

CVE-2026-39862 exploits the application by passing crafted tophat:// or http://localhost:29070 URLs that include unsanitized arguments.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203