CVE-2026-59176 Details
Description
Functype is a family of TypeScript functional programming libraries. Prior to 1.4.4, the `set_functype_version` MCP tool in `functype-mcp-server` accepts an unconstrained `version` string using only `z.string()` validation in `packages/mcp-server/src/index.ts` and interpolates it into `functype@<version>` for `pnpm add`. Package-alias syntaxes such as `file:`, `npm:`, URLs, or paths can cause an arbitrary local or remote package to be installed as functype. Immediately afterward, `initDocsData(true)` in `packages/mcp-server/src/lib/docs/data.ts` resolves `functype/cli` and dynamically imports the newly installed module, executing attacker-controlled JavaScript with the MCP server process's privileges. Any MCP client able to send a `tools/call` request invoking the tool can exploit the flaw; the tool is enabled by default without authentication in `stdio` mode. A connected AI assistant susceptible to indirect prompt injection can also be induced to invoke it from a malicious document or web page. In non-default `TRANSPORT_TYPE=httpStream` deployments, a network-accessible attacker does not require local access. Successful execution can read process secrets, modify files, or terminate the server. This issue is fixed in `version` 1.4.4.
A remote code execution vulnerability has been identified in the Functype MCP Server prior to version 1.4.4. The issue arises in the 'set_functype_version' tool, which accepts an unconstrained version string. This string is interpolated into a package specification and installed using 'pnpm add', without proper validation. The vulnerability allows for the installation of arbitrary local or remote packages as 'functype'. After installation, the server dynamically imports the 'functype/cli' module from the newly installed package, executing attacker-controlled JavaScript with the server's privileges. The vulnerability can be exploited by any MCP client that sends a 'tools/call' request to invoke the 'set_functype_version' tool, which is enabled by default without authentication in 'stdio' mode. Additionally, in 'TRANSPORT_TYPE=httpStream' deployments, a network-accessible attacker can exploit the vulnerability without local access.
Users can update to Functype MCP Server version 1.4.4 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 28, 2026CISA-ADP
Assessed Nov 3, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/jordanburke/functype/security/advisories/GHSA-wcjj-9m6g-2fr2 | CISA-ADP | AdvisoryRemedyVendor |
| https://github.com/jordanburke/functype/commit/c0d58ad9c2a7d15c6117bd3adbbd75de37317dcf | [email protected] | Source CodeVendor |
| https://github.com/jordanburke/functype/releases/tag/v1.4.4 | [email protected] | Release NotesVendor |
| https://github.com/jordanburke/functype/security/advisories/GHSA-wcjj-9m6g-2fr2 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-829 | Inclusion of Functionality from Untrusted Control Sphere | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| jordanburke/functype-mcp-server | <= 1.4.3 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 3, 2026 | CVE Modified | CISA-ADP |
| Oct 28, 2026 | New CVE Received | [email protected] |
Volerion