CVE-2026-2178 r-huijts xcode-mcp-server run_lldb index.ts registerXcodeTools command injection
Attackers can execute arbitrary commands via the run_lldb tool in the xcode-mcp-server, requiring a patch to mitigate remote code execution risks.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-2178?
CVE-2026-2178 is a medium-severity command injection vulnerability in r-huijts xcode-mcp-server, published on 8 Feb 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
A vulnerability was found in r-huijts xcode-mcp-server up to f3419f00117aa9949e326f78cc940166c88f18cb. This affects the function registerXcodeTools of the file src/tools/xcode/index.ts of the component run_lldb. The manipulation of the argument args results in command injection. It is possible to launch the attack remotely. The exploit has been made public and could be used. This product takes the approach of rolling releases to provide continious delivery. Therefore, version details for affected and updated releases are not available. The patch is identified as 11f8d6bacadd153beee649f92a78a9dad761f56f. Applying a patch is advised to resolve this issue.
Which versions are affected by CVE-2026-2178?
2 open source packages ship an affected version, including xcode-mcp-server. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
xcode-mcp-server npm | All versions to 1.0.3 | None |
xcode-mcp-server npm | All versions to 1.0.3 | None |
Products include R-Huijts Xcode Mcp Server.
How do I fix CVE-2026-2178?
No fix has been published for CVE-2026-2178 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-2178 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-2178 exists.
Sources
Also known as GHSA-84fx-pwf3-7777.