CVE-2026-59176 json
Functype: MCP set_functype_version Package Alias RCE via Unsanitized pnpm install + Dynamic Import
published 2026-09-09 1 mo ago modified 2026-11-03 5 d ago also GHSA-wcjj-9m6g-2fr2 , EUVD-2026-112078
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 11%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm functype-mcp-server 1.4.4
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 5 d ago
Exploit prediction
0.21% chance of exploitation in the next 30 days, higher than 11% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/jordanburke/functype/security/advisories/GHSA-wcjj-9m6g-2fr2 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | functype-mcp-server | <1.4.4 |
1.4.4 |
Affected products
- jordanburke functype
Classification
- Weakness
-
- CWE-829 Inclusion of Functionality from Untrusted Control Sphere
References
-
github.com
/jordanburke/functype/commit/c0d58ad9c2a7d15c6117bd3adbbd75de37317dcf
web
-
github.com
/jordanburke/functype/security/advisories/GHSA-wcjj-9m6g-2fr2
exploit, web
-
github.com
/jordanburke/functype/releases/tag/v1.4.4
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-59176
advisory
-
github.com
/jordanburke/functype
package
Sources
- CVE List CVE-2026-59176
- GitHub Advisory GHSA-wcjj-9m6g-2fr2
- NVD CVE-2026-59176
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.