AI Stack Alert High CVE-2026-59176 For AI Eng, AppSec, SOC / IR, CISO AI-assisted
CVE-2026-59176: functype-mcp-server set_functype_version tool allows arbitrary package install and code execution
Functype's functype-mcp-server prior to 1.4.4 passes the unvalidated version argument of the set_functype_version MCP tool into a pnpm add command. Package-alias values such as file:, npm:, URLs, or paths can install an arbitrary package, which is then dynamically imported and executed with the server's privileges. The tool is enabled by default without authentication in stdio mode; the issue is fixed in 1.4.4.
Why it matters
Any MCP client that can call the tool, including an AI assistant steered by indirect prompt injection, can run attacker-controlled JavaScript as the server process. In non-default httpStream deployments, a network attacker needs no local access.
Do this
- Upgrade functype-mcp-server to version 1.4.4 or later.
- Until patched, disable or remove the set_functype_version tool from MCP server configurations.
- If running TRANSPORT_TYPE=httpStream, restrict network access to the server and require authentication.
- Review logs and process activity for unexpected pnpm add invocations or unknown packages installed as functype.
- Treat AI assistants connected to this MCP server as able to trigger the tool through untrusted content, and limit their tool permissions accordingly.
Exploit Clock
Exploitation unlikely (for now)
- EPSS 0.21%
Signals
- NoCISA KEV
- 7.8CVSS
- 0.21%EPSS
- NoPublic PoC
- 36/100Priority
- 80%Confidence
Evidence
“accepts an unconstrained `version` string using only `z.string()` validation”
“executing attacker-controlled JavaScript with the MCP server process's privileges”
“the tool is enabled by default without authentication in `stdio` mode”
“This issue is fixed in `version` 1.4.4.”
Sources
Affected / related
functype-mcp-server, functype, indirect prompt injection, Functype
Published 2026-10-28 14:17 UTC · updated 2026-11-08 02:37 UTC · AI-assisted summary, checked against quoted sources · How we score