Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-59176— Functype: MCP set_functype_version Package Alias RCE via Unsanitized pnpm install + Dynamic Import

Quick assessment

Affected
jordanburke functype
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Functype 是一个 TypeScript 函数式编程库家族。在 1.4.4 版本之前, 中的 MCP 工具在 文件中仅使用 对 字符串进行验证,未施加任何约束,随后将其插值到 中用于执行 命令。攻击者可利用包别名语法(如 、 、URL 或文件路径)诱导系统安装任意本地或远程包,并将其伪装为 functype 包。紧接着, 中的 函数会解析 并动态导入新安装的模块,从而以 MCP 服务器进程的特权执行攻击者控制的 JavaScript 代码。 任何能够发送 请求调用该工具的 MCP 客户端均可利用此漏洞;该工具

CVSS 7.8 · High

Affected Version Matrix 1

VendorProduct Version RangeStatus
jordanburke functype < 1.4.4 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-59176

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Functype: MCP set_functype_version Package Alias RCE via Unsanitized pnpm install + Dynamic Import
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
从非可信控制范围包含功能例程
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
jordanburke functype < 1.4.4 -

II. Public POCs for CVE-2026-59176

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-59176

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-59176 (1)

Vendor Advisories for CVE-2026-59176 (1)

Vendor Pages for CVE-2026-59176 (1)

IV. Related Vulnerabilities