CVE-2026-57860
published high CVSS 4.0 · 8.4ForgeCode Arbitrary Code Execution via Unvetted .mcp.json in Untrusted Repository
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| tailcallhq | — | forgecode2.11.1 · Other versions: affected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.4 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| tailcallhq | forgecode | 2.11.1 (affected · git)Default: affected | VulnCheck · cna |
Weaknesses
1- CWE-829 Inclusion of Functionality from Untrusted Control Sphere
References
5- Product https://github.com/tailcallhq/forgecode
- Patch Commit https://github.com/tailcallhq/forgecode/commit/68ca3a3a26c73c38a700453d3d021b5bbdc15dbd
- GitHub Issue https://github.com/tailcallhq/forgecode/issues/3022
- GitHub Issue https://github.com/tailcallhq/forgecode/issues/3252
- https://www.vulncheck.com/advisories/forgecode-arbitrary-code-execution-via-unvetted-mcp-json-in-untrusted-repository
Provider assertions
2VulnCheck · cna
ForgeCode Arbitrary Code Execution via Unvetted .mcp.json in Untrusted Repository
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b864152768244ac771b7afc184ffcb6d19757626b6ceffa8606f7e04f735d619
- Ingested
- 23 Sep 2026, 09:22:08 UTC
- Source record
- Official CVE record