Quick answers
- Is CVE-2026-39862 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-39862 being exploited in the wild.
- How severe is CVE-2026-39862?
- High severity, with a CVSS score of 8.8, published 8 April 2026.
- Which products and versions are affected?
- Shopify Tophat < 2.5.1.
- Is there a fix for CVE-2026-39862?
- A patch was published on 2026-03-30: Fix merged in pull request #139 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-39862 attacked?
- It is attacked over the network, in a network appliance.
- Am I affected by CVE-2026-39862?
- Check whether you run Shopify Tophat at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A command injection vulnerability (CWE-78) exists in Shopify Tophat prior to version 2.5.1. The application fails to sanitize the 'arguments' query parameter when parsing 'tophat://' or 'http://localhost:29070' URLs. This unsanitized input is passed directly to '/bin/bash -c' for execution. An attacker can exploit this by crafting a malicious URL that, when opened by a developer with Tophat installed, executes arbitrary shell commands with the user's privileges. For previously trusted build hosts, the execution may occur without a confirmation dialog. The issue is resolved in version 2.5.1 by implementing shell escaping for arguments and an allowlist for permitted characters.
Affected products
- Shopify Tophat < 2.5.1
Timeline
- 2026-03-30: patched: Fix merged in pull request #139
- 2026-04-08: disclosed: Vendor advisory published
- 2026-04-08: advisory: NVD published CVE-2026-39862