CVE Catalog

CVE-2026-57860

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.13%

3th percentile - higher than 3% of all known CVEs

Summary

ForgeCode automatically loads and executes MCP servers defined in a repository's .mcp.json file without user confirmation. A malicious repository can supply a crafted .mcp.json that runs arbitrary commands (e.g., bash -c 'touch /tmp/pwned') with the user's privileges. This leads to arbitrary code execution when working with untrusted repositories.

Risk Assessment

An attacker can gain initial access to a developer's system and establish persistence, posing a significant risk to organizations, especially in environments where developers review code from external sources.

Recommendation

Immediately update ForgeCode to a version that requires user confirmation before loading MCP servers. Until updated, avoid running the tool in untrusted repositories.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS