PT-2026-60803 · Forgecode · Forgecode

·

CVE-2026-57860

·

Published

2026-07-17

·

Updated

2026-07-19

CVSS v4.0

8.4

High

VectorAV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions ForgeCode (affected versions not specified)
Description ForgeCode, an AI pair-programming CLI, automatically loads and executes Model Context Protocol (MCP) servers defined in a repository's .mcp.json file upon startup without requiring user confirmation. A malicious repository can contain a crafted .mcp.json file where the mcpServers entries specify arbitrary command and args values. When the CLI is executed within a cloned untrusted repository, these commands are spawned with the privileges of the invoking user, leading to arbitrary code execution. This issue serves as a mechanism for initial access and persistence against developers evaluating untrusted repositories.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-57860

Affected Products

Forgecode