CVE-2025-54994 @akoskm/create-mcp-server-stdio has Command Injection in MCP Server due to unsafe `exec` API
Attackers can execute arbitrary commands via the which-app-on-port tool due to unsafe exec usage in this MCP server library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-54994?
CVE-2025-54994 is a critical command injection vulnerability in akoskm create-mcp-server-stdio, published on 8 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
@akoskm/create-mcp-server-stdio is an MCP server starter kit that uses the StdioServerTransport. Prior to version 0.0.13, the MCP Server is written in a way that is vulnerable to command injection vulnerability attacks as part of some of its MCP Server tool definition and implementation. The MCP Server exposes the tool `which-app-on-port` which relies on Node.js child process API `exec` which is an unsafe and vulnerable API if concatenated with untrusted user input. Version 0.0.13 contains a fix for the issue.
Weakness: CWE-78
Which versions are affected by CVE-2025-54994?
2 open source packages ship an affected version, including @akoskm/create-mcp-server-stdio.
| Package | Affected | Fixed in |
|---|---|---|
@akoskm/create-mcp-server-stdio npm | All versions | 0.0.13 |
@akoskm/create-mcp-server-stdio npm | All versions | 0.0.13 |
How do I fix CVE-2025-54994?
Upgrade @akoskm/create-mcp-server-stdio to 0.0.13 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2025-54994 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-54994 exists.
Sources
Also known as GHSA-3ch2-jxxc-v4xf.