{"id":"EUVD-2026-112078","enisaUuid":"63a01ccb-99b4-3e23-94ef-d29fa3a75d68","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@\u003cversion\u003e` 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\u0027s 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\u003dhttpStream` 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.","datePublished":"Oct 28, 2026, 1:08:52 PM","dateUpdated":"Oct 28, 2026, 1:08:52 PM","baseScore":7.8,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","references":"https://github.com/jordanburke/functype/security/advisories/GHSA-wcjj-9m6g-2fr2\nhttps://github.com/jordanburke/functype/commit/c0d58ad9c2a7d15c6117bd3adbbd75de37317dcf\nhttps://github.com/jordanburke/functype/releases/tag/v1.4.4\n","aliases":"CVE-2026-59176\nGHSA-wcjj-9m6g-2fr2\n","assigner":"GitHub_M","epss":0.21,"enisaIdProduct":[{"id":"c3589b91-750a-33f5-b542-1544e9da1ae1","product":{"name":"functype","vendor":{"name":"jordanburke"}},"product_version":"\u003c 1.4.4"}],"enisaIdVendor":[{"id":"dd512fbe-dd67-368a-855a-00fb14a06d28","vendor":{"name":"jordanburke"}}],"enisaIdVulnerability":[{"id":"251a6a34-461f-30db-bfce-7d3bd2b628d9","vulnerability":{"id":"CVE-2026-59176","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@\u003cversion\u003e` 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\u0027s 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\u003dhttpStream` 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.","datePublished":"Oct 28, 2026, 1:08:52 PM","dateUpdated":"Oct 28, 2026, 1:08:52 PM","status":"PUBLISHED","baseScore":7.8,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","references":"https://github.com/jordanburke/functype/security/advisories/GHSA-wcjj-9m6g-2fr2\nhttps://github.com/jordanburke/functype/commit/c0d58ad9c2a7d15c6117bd3adbbd75de37317dcf\nhttps://github.com/jordanburke/functype/releases/tag/v1.4.4\n","enisa_id":"EUVD-2026-112078\n","assigner":"GitHub_M","epss":0.21,"dataProcessed":"Oct 30, 2026, 12:00:41 PM","vulnerabilityProduct":[{"id":"b7a7267d-6fff-3bb6-b5c2-fe439b6815bf","product":{"name":"functype","vendor":{"name":"jordanburke"}},"product_version":"\u003c 1.4.4"}],"vulnerabilityVendor":[{"id":"92ef472a-f6a3-3a48-8917-416ab6f805b6","vendor":{"name":"jordanburke"}}]}},{"id":"5f7778a5-48e5-3491-8172-86037f25db29","vulnerability":{"id":"GHSA-wcjj-9m6g-2fr2","description":"functype-mcp-server: MCP `set_functype_version` Package Alias RCE via Unsanitized pnpm install + Dynamic Import","datePublished":"Sep 9, 2026, 11:49:20 PM","dateUpdated":"Sep 9, 2026, 11:49:20 PM","baseScore":0.0,"references":"https://github.com/jordanburke/functype/security/advisories/GHSA-wcjj-9m6g-2fr2\nhttps://github.com/jordanburke/functype/commit/c0d58ad9c2a7d15c6117bd3adbbd75de37317dcf\nhttps://github.com/jordanburke/functype\n","enisa_id":"EUVD-2026-112078\n","aliases":"CVE-2026-59176\nGHSA-wcjj-9m6g-2fr2\n","epss":0.0,"dataProcessed":"Oct 25, 2026, 2:01:07 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}