
Proof of Concept (PoC) exploit for CVE-2026-23744, a vulnerability affecting MCPJam Inspector that allows remote command execution (RCE) through exposed internal debugging endpoints
This vulnerability exists because MCPJam Inspector exposes internal API endpoints intended for debugging and development. These endpoints accept user-controlled input and pass it directly to system-level process execution without proper validation or sanitization. By sending a crafted request to the vulnerable endpoint (/api/mcp/connect), an attacker can control the serverConfig object and specify arbitrary commands to be executed on the host. The application attempts to spawn a process based on user input and treat it as a valid MCP server. However, due to the lack of input validation, this behavior can be abused to execute arbitrary system commands.
The exploit abuses the following logic:
commandargs
These values are used to spawn a process on the serverSince the application expects a long-running MCP process, short-lived commands may cause connection errors — but the command is still executed.
python3 exploit.py ''
Example:
python3 exploit.py domain.com "sleep 4"
This is a blind RCE: