SCA: security update for functype-mcp-server (GHSA-wcjj-9m6g-2fr2)

high Tenable Self-Hosted Container Security Plugin ID 447868

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-59176)

Solution

Update the functype-mcp-server library and its related packages to version 1.4.4 or later.

See Also

https://github.com/advisories/GHSA-wcjj-9m6g-2fr2

Plugin Details

Severity: High

ID: 447868

Version: Revision 1.2

Type: Local

Family: SCA Checks

Published: 9/10/2026

Updated: 10/29/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 58.57

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 5.3

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-59176

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.8

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 9/9/2026

Vulnerability Publication Date: 9/9/2026

Reference Information

CVE: CVE-2026-59176

cwe: CWE-829