# CVE-2026-57860: ForgeCode Arbitrary Code Execution via Unvetted .mcp.json in Untrusted Repository

- Severity: High 8.4 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-17T16:16:09.573Z
- Modified: 2026-10-24T20:10:00.137Z
- Weaknesses: CWE-829
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- tailcallhq forgecode: 2.11.1

## Every score

- VulnCheck: CVSS:4.0 8.4 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/tailcallhq/forgecode/issues/3022> (exploit, issue-tracking)
- <https://github.com/tailcallhq/forgecode/issues/3252> (issue-tracking)
- <https://github.com/tailcallhq/forgecode> (product)
- <https://github.com/tailcallhq/forgecode/commit/68ca3a3a26c73c38a700453d3d021b5bbdc15dbd> (patch)
- <https://www.vulncheck.com/advisories/forgecode-arbitrary-code-execution-via-unvetted-mcp-json-in-untrusted-repository> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-57860](https://www.cve.org/CVERecord?id=CVE-2026-57860), CVE Terms of Use, modified 2026-07-20
- NVD: [CVE-2026-57860](https://nvd.nist.gov/vuln/detail/CVE-2026-57860), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-57860 · Whole record: https://cve.day/CVE-2026-57860.json · Rebuilt by cve.day 2026-11-25T22:59:28.500Z
