Skip to content
HighVulnerability

CVE-2026-57860: ForgeCode arbitrary command execution through repository .mcp.json on startup

Identifier
CVE-2026-57860
Published
Record updated
View JSON
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.