Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-39862: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Shopify tophat

0
Medium
VulnerabilityCVE-2026-39862cvecve-2026-39862cwe-78
Published: Wed Apr 08 2026 (04/08/2026, 19:50:05 UTC)
Source: CVE Database V5
Vendor/Project: Shopify
Product: tophat

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/08/2026, 20:21:18 UTC

Technical Analysis

Shopify Tophat versions before 2.5.1 contain an OS command injection vulnerability (CWE-78) due to improper neutralization of special elements in the arguments query parameter. The parameter is parsed from crafted URLs (tophat:// or http://localhost:29070) and passed unsanitized to /bin/bash -c, allowing arbitrary command execution on macOS developer workstations. No user interaction or confirmation is required on previously trusted build hosts. The vulnerability is resolved in Tophat 2.5.1.

Potential Impact

An attacker can remotely execute arbitrary commands on a developer's macOS workstation running a vulnerable Tophat version, with the same permissions as the user. This could lead to compromise of the developer environment and potentially the software development process. No known exploits in the wild have been reported. The CVSS 4.0 score is 6.3 (medium severity), reflecting network attack vector, low attack complexity, no user interaction, but requiring privileges and resulting in high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

Upgrade Tophat to version 2.5.1 or later, where this vulnerability is fixed. Since the vendor advisory confirms the fix in 2.5.1, applying this update fully mitigates the risk. No additional mitigation steps are indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-07T19:13:20.379Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69d6b51c1cc7ad14daaa5cec

Added to database: 4/8/2026, 8:05:48 PM

Last enriched: 4/8/2026, 8:21:18 PM

Last updated: 4/9/2026, 8:15:48 AM

Views: 9

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses