The vulnerability exists in the createServer function within src/controllers/serverController.ts. Based on the provided GitHub issue, this function is responsible for handling the creation of new MCP servers. The core of the issue lies in the fact that the function directly uses the command and args fields from the user-provided request body without any form of sanitization. This unsanitized input is then used to construct and execute a command, leading to a command injection vulnerability. The provided POC in the GitHub issue confirms that by sending a crafted POST request to the /api/servers endpoint, an attacker can execute arbitrary commands on the host system. The createServer function is the clear entry point for this vulnerability as it's the first point of contact for the malicious user input.