CVE-2026-2178: xcode-mcp-server Command Injection Vulnerability

xcode-mcp-server Updated 07 Mar 2026

Summary

08/02/2026
No i
Low
6.3

CVE-2026-2178: xcode-mcp-server vulnerable to Command Injection. Affects xcode-mcp-server versions < 1.0.3. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

xcode-mcp-server is an npm package designed to facilitate the integration of Xcode tools into various development workflows. It allows developers to run and manage Xcode-related tasks programmatically. However, a critical vulnerability has been identified in the package that exposes it to command injection attacks, potentially compromising system security.

Vulnerability Detail

A command injection vulnerability exists in the function registerXcodeTools within the src/tools/xcode/index.ts file of the xcode-mcp-server package, specifically in versions up to 1.0.3. The vulnerability arises from improper handling of user-supplied input in the args argument, allowing an attacker to execute arbitrary commands on the server. This could lead to unauthorized access, data manipulation, or system compromise, making it a significant security risk.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can restrict access to the affected functionality or validate and sanitize all user inputs before processing them to mitigate the risk of command injection.

Conclusion

The xcode-mcp-server package has a critical command injection vulnerability that can be exploited remotely. Users are strongly encouraged to update to the patched version to mitigate risks. Additionally, implementing input validation can serve as a temporary workaround. Regular monitoring for vulnerabilities using tools like Vulert can help maintain application security.

See every vulnerability recorded for xcode-mcp-server →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 6.3, indicating a medium severity level.

Yes, the vulnerability can be exploited remotely, allowing attackers to execute commands on the server.

Yes, a patch has been identified and users are advised to update to the latest version of xcode-mcp-server.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability could lead to unauthorized command execution, data breaches, and overall system compromise.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback