PatchSiren cyber security CVE debrief
CVE-2026-59176 jordanburke CVE debrief
The `set_functype_version` MCP tool in `functype-mcp-server` is vulnerable to Remote Code Execution (RCE) due to unsanitized package alias input. An attacker can cause the server to install an arbitrary package, leading to full confidentiality, integrity, and availability impact. This vulnerability exists because the tool accepts an unconstrained `version` string, interpolates it directly into an npm package specifier (`functype@<version>`), and installs it via `pnpm add` without any validation. The dynamic import of `functype/cli` from the newly installed location allows for the execution of attacker-controlled JavaScript in the MCP server process, resulting in a high-severity RCE
- Vendor
- jordanburke
- Product
- functype-mcp-server
- CVSS
- HIGH 7.8
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-09-09
- Original CVE updated
- 2026-11-02
- Advisory published
- 2026-09-09
- Advisory updated
- 2026-11-02
Who should care
Defenders responsible for `functype-mcp-server` deployments should assess exposure and prioritize remediation due to the high severity of this RCE vulnerability. They should review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance. Additionally, defenders should plan vendor-supported updates or mitigations through normal change control where exposure is confirmed and implement compensating controls for
Why it matters
CVE-2026-59176 is a high-severity RCE vulnerability in `functype-mcp-server` that allows attackers to execute arbitrary code with server privileges. Defenders should prioritize remediation and verify exposure.
- Full confidentiality impact due to potential data exposure
- Full integrity impact due to potential code modification
- Full availability impact due to potential service disruption
- Verification priority for inventory checks and compensating controls
Technical summary
The `set_functype_version` MCP tool in `functype-mcp-server` accepts an unconstrained `version` string, interpolates it directly into an npm package specifier, and installs it via `pnpm add` without validation. This allows an attacker to install an arbitrary local or remote package as `functype`, leading to RCE with the privileges of the server process. The vulnerability exists in the `packages/mcp-server/src/index.ts` file, specifically in the `set_functype_version` tool, which is registered at line 115 and is enabled by default with no authentication required in stdio mode. The dynamic import of `functype/cli` from the newly installed location allows for the execution of attacker-controlled JavaScript
Defensive priority
High
Recommended defensive actions
- Verify and upgrade `functype-mcp-server` to version 1.4.4 or later
- Restrict access to the `set_functype_version` MCP tool
- Implement input validation for package aliases
- Monitor for suspicious package installations and dynamic imports
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
Evidence notes
The vulnerability exists in the `packages/mcp-server/src/index.ts` file, specifically in the `set_functype_version` tool. The tool is registered at line 115 and is enabled by default with no authentication required in stdio mode.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-59176 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-59176
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-59176 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-59176
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
functype-mcp-server: MCP `set_functype_version` Package Alias RCE via Unsanitized pnpm install +
Unverified legacy reference
URL: https://storage.googleapis.com/osv-vulnerabilities/npm/GHSA-wcjj-9m6g-2fr2.json
osv_dev
-
Source reference
Unverified legacy reference
URL: https://github.com/jordanburke/functype/security/advisories/GHSA-wcjj-9m6g-2fr2
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/jordanburke/functype/commit/c0d58ad9c2a7d15c6117bd3adbbd75de37317dcf
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/jordanburke/functype
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/jordanburke/functype/releases/tag/v1.4.4
Supplemental source
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.