| Field | Value |
|---|---|
| CVE / NVD | CVE-2026-57860 |
| Date (index) | 2026-07-17 |
| Affected product (index) | ForgeCode (tailcallhq/forgecode), an AI pair-programming CLI, automatically loads and executes the MCP servers defined in a repository’s .mcp.json fil |
| GHSA ID | None — no GitHub advisory published (search) |
| OWASP MCP Top 10 (2025) | MCP04 — Software Supply Chain Attacks & Dependency Tampering |
| Published / disclosed | 2026-07-17 |
| Ecosystem | Application / upstream project |
| Component | ForgeCode (tailcallhq/forgecode), an AI pair-programming CLI, automatically loads and executes the M |
| EPSS score | 0.001960000 (FIRST EPSS, 2026-09-26) |
| CVSS score | HIGH — 8.4 CVSS v4.0 |
| CWE | CWE-829 |
| Affected versions | 2.11.1, <= 2.11.1, v2.12.16, v2.12.15, v2.12.14, v2.12.13, v2.12.12, v2.12.11, v2.12.10, v2.12.9, v2.12.8, v2.12.7, v2.12.6, v2.12.5, v2.12.4, v2.12.3, v2.12.2, v2.12.1, v2.12.0, v2.11.5, v2.11.4, v2.11.3, v2.11.2, v2.11.1 |
| Fixed versions | None published in NVD/OSV |
| Fix status | Unfixed |
| Exploit status | Public CVE record; do not mirror weaponized payloads |
| Notes | Added as a separate CVE note during the 2026-08-25 missing-CVE follow-up. Re-check NVD before using this entry for compliance reporting. |
ForgeCode (tailcallhq/forgecode), an AI pair-programming CLI, automatically loads and executes the MCP servers defined in a repository’s .mcp.json file on startup without user confirmation. A malicious repository can supply a crafted .mcp.json whose mcpServers entries specify arbitrary command and args values (for example, command: bash with args: [‘-c’, ‘touch /tmp/pwned’]). When a user runs the forge CLI inside a cloned untrusted repository, the specified commands are spawned with the invoking user’s privileges, resulting in arbitrary code execution. This provides a reliable initial-access and persistence primitive against developers who evaluate untrusted repositories with ForgeCode.
Exposure depends on how the affected MCP server, client, gateway, plugin, extension, or adjacent AI workflow is deployed. Prioritize network-reachable MCP transports, desktop apps with MCP extensions enabled, CI or agent environments, and systems with access to browsers, repositories, credentials, cloud resources, databases, or local files.
Primary mapped weakness: MCP04 — Software Supply Chain Attacks & Dependency Tampering. Confirm the exact CWE and affected code path in the NVD record and upstream advisory before adding exploit-specific detail.
MCP components bridge model output to privileged tools. Vulnerabilities in authorization, path validation, OAuth handling, command execution, SSRF validation, prompt/tool trust, or tool access can turn prompt/tool input into host compromise, credential disclosure, unauthorized browser/cloud/database access, or persistent malicious tool execution.
Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory. Do not paste weaponized payloads.
Upgrade to the vendor-fixed version where available. If no fixed version is listed, restrict the affected component to trusted users and trusted networks, disable risky tools, validate tool arguments, and run the service with least-privilege credentials until upstream remediation is confirmed.
If a public PoC exists, prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.
Track NVD references for CVE-2026-57860 and apply the upstream patched release or commit recommended by the vendor/CNA.