HighVulnerability
CVE-2026-57860: ForgeCode arbitrary command execution through repository .mcp.json on startup
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-57860
- Published
- Record updated
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.2%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
ForgeCode, an AI pair-programming CLI from tailcallhq/forgecode, automatically starts the MCP servers listed in a repository's .mcp.json file without asking the user. A malicious repository can supply entries whose command and args values run arbitrary commands, which execute with the invoking user's privileges when the forge CLI is run inside it. The source describes this as a reliable initial-access and persistence primitive against developers who evaluate untrusted repositories.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Topics
Related items
- HighCVE-2026-128877: IBM Langflow OSS 1.0.0 through 1.13.0 agentic MCP endpoint uses an internal client to send requests to the server's own…Similar attack, NVD/CVE Database
- MediumCVE-2026-120038: IBM Langflow OSS credential exposure via attacker-controlled OpenAI base_urlSimilar attack, NVD/CVE Database
- MediumCVE-2026-136957: Sonatype Nexus Repository 3 HuggingFace proxy download token verification flawSimilar attack, NVD/CVE Database
- HighCVE-2026-142134 - Uncontrolled search path element in the workflow linting tools in AWS HealthOmics MCP ServerSimilar attack, AWS Security Bulletins
- HighCVE-2026-142134: AWS HealthOmics MCP Server uncontrolled search path in workflow linting toolsSimilar attack, NVD/CVE Database