{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-39862 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-39862 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-39862 is a medium-severity vulnerability in Shopify tophat, published on 8 Apr 2026."},"fix_prompt":"Check this codebase for CVE-2026-39862 and fix it if it is affected.\n\nWhat it is: CVE-2026-39862 is a medium-severity vulnerability in Shopify tophat, published on 8 Apr 2026. \nExploitation: There is no known exploitation of CVE-2026-39862 in the wild and no public exploit code.\n\nAffected product: Shopify tophat. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-39862/ (Markdown: https://insights.sbomify.com/CVE-2026-39862/index.md)","id":"CVE-2026-39862","markdown":"https://insights.sbomify.com/CVE-2026-39862/index.md","name":"CVE-2026-39862","record":{"aliases":["GHSA-8x8g-6rv5-mgg2"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"tophat","vendor":"shopify"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Tophat has a Command Injection Vulnerability When Accessing a Maliciously Crafted Tophat Link","id":"CVE-2026-39862","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2026"},"n_packages":0,"n_references":2,"next":{"headline":"Kamailio Core: TCP Data Processing Vulnerability","id":"CVE-2026-39863"},"packages":[],"prev":{"headline":"Claude Code: Sandbox Escape via Symlink Following Allows Arbitrary File Write Outside Workspace","id":"CVE-2026-39861"},"products":["tophat"],"published":"2026-04-08","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-09","vendors":["Shopify"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-39862/"}