<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 06 Oct 2026 06:21:08 +0000</lastBuildDate>
    <item>
      <title>GHSA-wcjj-9m6g-2fr2 — functype-mcp-server: MCP `set_functype_version` Package Alias RCE via Unsanitized pnpm install + Dynamic Import</title>
      <link>https://db.gcve.eu/vuln/ghsa-wcjj-9m6g-2fr2</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: functype-mcp-server&lt;/p&gt;
&lt;p&gt;## MCP `set_functype_version` Package Alias RCE via Unsanitized pnpm install + Dynamic Import&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;The `set_functype_version` MCP tool in `functype-mcp-server` accepts an unconstrained `version` string, interpolates it directly into an npm package specifier (`functype@&amp;lt;version&amp;gt;`), 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).&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;The vulnerable code is in `packages/mcp-server/src/index.ts`. The `set_functype_version` tool is registered at line 115 and is enabled by default (no authentication required in stdio mode).&lt;/p&gt;
&lt;p&gt;**Source (user input accepted without validation):**
```ts
// packages/mcp-server/src/index.ts:119-121
parameters: z.object({
  version: z.string().describe(&amp;#39;The functype version to install (e.g., &amp;#34;0.46.0&amp;#34;, &amp;#34;latest&amp;#34;, &amp;#34;^0.45.0&amp;#34;)&amp;#39;),
}),
```
Only `z.string()` validation is applied — no semver format check, no allowlist for dist-ta…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: functype-mcp-server&lt;/p&gt;
&lt;p&gt;## MCP `set_functype_version` Package Alias RCE via Unsanitized pnpm install + Dynamic Import&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;The `set_functype_version` MCP tool in `functype-mcp-server` accepts an unconstrained `version` string, interpolates it directly into an npm package specifier (`functype@&amp;lt;version&amp;gt;`), 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).&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;The vulnerable code is in `packages/mcp-server/src/index.ts`. The `set_functype_version` tool is registered at line 115 and is enabled by default (no authentication required in stdio mode).&lt;/p&gt;
&lt;p&gt;**Source (user input accepted without validation):**
```ts
// packages/mcp-server/src/index.ts:119-121
parameters: z.object({
  version: z.string().describe(&amp;#39;The functype version to install (e.g., &amp;#34;0.46.0&amp;#34;, &amp;#34;latest&amp;#34;, &amp;#34;^0.45.0&amp;#34;)&amp;#39;),
}),
```
Only `z.string()` validation is applied — no semver format check, no allowlist for dist-ta…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/ghsa-wcjj-9m6g-2fr2</guid>
    </item>
  </channel>
</rss>
