{"affected":[{"product":"functype","source":"CNA: GitHub_M","vendor":"jordanburke","versions":[{"status":"affected","version":"< 1.4.4"}]},{"defaultStatus":"unaffected","ecosystem":"npm","packageName":"functype-mcp-server","product":"functype-mcp-server","source":"OSV GHSA-wcjj-9m6g-2fr2","vendor":"","versions":[{"events":[{"introduced":"0"},{"fixed":"1.4.4"}],"lessThan":"1.4.4","status":"affected","version":"0","versionType":"semver"}]}],"cveId":"CVE-2026-59176","cwes":["CWE-829"],"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.","epss":{"date":"2026-11-02","percentile":0.11417,"score":0.00212},"exploits":[{"kind":"exploit","source":"ADP: CISA-ADP","url":"https://github.com/jordanburke/functype/security/advisories/GHSA-wcjj-9m6g-2fr2"}],"kev":null,"metrics":[{"score":7.8,"severity":"high","source":"CNA: GitHub_M","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1793710715532,"publishedAt":1793192932592,"references":[{"source":"CNA: GitHub_M","tags":["x_refsource_CONFIRM"],"url":"https://github.com/jordanburke/functype/security/advisories/GHSA-wcjj-9m6g-2fr2"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/jordanburke/functype/commit/c0d58ad9c2a7d15c6117bd3adbbd75de37317dcf"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/jordanburke/functype/releases/tag/v1.4.4"},{"source":"ADP: CISA-ADP","tags":["exploit"],"url":"https://github.com/jordanburke/functype/security/advisories/GHSA-wcjj-9m6g-2fr2"},{"source":"OSV / GitHub Security Advisories","tags":["advisory"],"url":"https://github.com/advisories/GHSA-wcjj-9m6g-2fr2"},{"source":"OSV / GitHub Security Advisories","tags":["osv"],"url":"https://osv.dev/vulnerability/GHSA-wcjj-9m6g-2fr2"}],"remediation":[{"kind":"fix","source":"OSV GHSA-wcjj-9m6g-2fr2","text":"functype-mcp-server (npm): OSV reports a fixed version 1.4.4. Check the advisory for supported release branches.","url":"https://github.com/advisories/GHSA-wcjj-9m6g-2fr2"}],"revision":"077c8babf54a5c72928da4a90218018cb15f0eb346137f0e0918e392acf96246","sources":[{"modifiedAt":1793710715532,"name":"CNA: GitHub_M","retrievedAt":1793711391055,"url":"https://www.cve.org/CVERecord?id=CVE-2026-59176"},{"modifiedAt":1793648710888,"name":"OSV / GitHub Security Advisories","retrievedAt":1793711393278,"url":"https://osv.dev/vulnerability/GHSA-wcjj-9m6g-2fr2"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1793711399028,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-59176"}],"ssvc":{"assessedAt":1793710664435,"automatable":"no","exploitation":"poc","source":"ADP: CISA-ADP","technicalImpact":"total"},"status":"published","title":"Functype: MCP set_functype_version Package Alias RCE via Unsanitized pnpm install + Dynamic Import","updatedAt":1793711399028}