CVE-2025-54994
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-54994 affects the @akoskm/create-mcp-server-stdio package, an MCP server starter kit that uses StdioServerTransport. The vulnerability was discovered in versions prior to 0.0.13, where the MCP Server was susceptible to command injection attacks. The issue was specifically identified in the tool 'which-app-on-port' implementation, which used Node.js child process API 'exec' in an unsafe manner when handling untrusted user input (GitHub Advisory).

Technical details

The vulnerability stems from the improper use of Node.js child process API 'exec' in the MCP Server's 'which-app-on-port' tool implementation. The vulnerable code concatenated untrusted user input directly into command strings, allowing for potential command injection attacks. The issue has been classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command). The vulnerability received a CVSS 4.0 Base Score of 9.3 CRITICAL with the vector string CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N (NVD).

Impact

The vulnerability allows for user-initiated and remote command injection on a running MCP Server. When exploited through techniques such as prompt injection, attackers can execute arbitrary commands on the host running the MCP Server by using special shell characters in the input. This could lead to unauthorized command execution and potential system compromise (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.0.13 of @akoskm/create-mcp-server-stdio. The fix involves replacing the unsafe 'exec' API with 'execFile', which handles command arguments as array elements and prevents command injection. Users are strongly recommended to upgrade to version 0.0.13 or later. For cases where immediate upgrade is not possible, it's recommended to avoid using the 'which-app-on-port' tool with untrusted input (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-54994CRITICAL9.3
  • JavaScriptJavaScript
  • @akoskm/create-mcp-server-stdio
NoYesSep 08, 2025
CVE-2025-58444HIGH8.6
  • JavaScriptJavaScript
  • @modelcontextprotocol/inspector
NoYesSep 08, 2025
CVE-2025-58362HIGH7.5
  • JavaScriptJavaScript
  • hono
NoYesSep 05, 2025
CVE-2025-58179HIGH7.2
  • JavaScriptJavaScript
  • @astrojs/cloudflare
NoYesSep 05, 2025
CVE-2025-55305MEDIUM6.1
  • JavaScriptJavaScript
  • electron
NoYesSep 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management