HIGHCVSS v3.1 7.8Vulnerability

CVE-2026-59176

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.

Properties

Summary
functype-mcp-server: MCP `set_functype_version` Package Alias RCE via Unsanitized pnpm install + Dynamic Import
Severity
HIGH
Nvd fetched at
2026-10-28T15:40:15.054286+00:00
Cvss severity
HIGH
Cvss score
7.8
Retrieved at
2026-10-28T15:41:17+00:00
Ghsa published
2026-09-09T23:49:20Z
Source url
https://github.com/advisories/GHSA-wcjj-9m6g-2fr2
Ghsa updated
2026-09-09T23:49:21Z
Ghsa id
GHSA-wcjj-9m6g-2fr2
Score
7.8
Cvss version
3.1
Last source
NVD
Cve id
CVE-2026-59176
Cvss vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
In Signal since
initial import (Sep 2026)
Name
CVE-2026-59176
Is ghsa only
false
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published at
2026-10-28T14:17:04.593

Related Entities (3)

AFFECTS (1)

VULNERABLE_TO (1)

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-59176 (CVSS v3.1 7.8) — Ninja Signal Threat Intelligence | Ninja Signal