Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-59176
Published:September 10, 2026
Updated:September 10, 2026
The "set_functype_version" MCP tool in "functype-mcp-server" accepts an unconstrained "version" string, interpolates it directly into an npm package specifier ("functype@<version>"), and installs it via "pnpm add" without any validation. Because npm/pnpm package specifiers support "file:", "npm:", and other alias syntaxes, an attacker who can send an MCP "tools/call" request to this tool can cause the server to install an arbitrary local or remote package as "functype". Immediately after installation, the server calls "initDocsData(true)", which dynamically imports "functype/cli" from the newly installed location, executing attacker-controlled JavaScript in the MCP server process. This results in full Remote Code Execution (RCE) with the privileges of the server process — full confidentiality, integrity, and availability impact (CVSS 7.8 High).
Affected Packages
https://github.com/jordanburke/functype.git (GITHUB):
Affected version(s) >=v0.47.0 <v1.4.4
Fix Suggestion:
Update to version v1.4.4
functype-mcp-server (NPM):
Affected version(s) >=0.47.0 <1.4.4
Fix Suggestion:
Update to version 1.4.4
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.5
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.8
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Inclusion of Functionality from Untrusted Control Sphere