{"answers":{"affected":"2 open source packages ship an affected version, including functype-mcp-server.","exploited":"There is no known exploitation of CVE-2026-59176 in the wild and no public exploit code.","fix":"Upgrade functype-mcp-server to 1.4.4 or later.","what":"CVE-2026-59176 is a high-severity vulnerability in jordanburke functype, published on 28 Oct 2026."},"fix_prompt":"Check this codebase for CVE-2026-59176 and fix it if it is affected.\n\nWhat it is: CVE-2026-59176 is a high-severity vulnerability in jordanburke functype, published on 28 Oct 2026. \nExploitation: There is no known exploitation of CVE-2026-59176 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- functype-mcp-server (npm): affected all versions; fixed in 1.4.4\n- functype-mcp-server (npm): affected all versions; fixed in 1.4.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-59176/ (Markdown: https://insights.sbomify.com/CVE-2026-59176/index.md)","id":"CVE-2026-59176","markdown":"https://insights.sbomify.com/CVE-2026-59176/index.md","name":"CVE-2026-59176","record":{"aliases":["GHSA-wcjj-9m6g-2fr2"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"description":"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@\u003cversion\u003e` 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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Functype: MCP set_functype_version Package Alias RCE via Unsanitized pnpm install + Dynamic Import","id":"CVE-2026-59176","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"ESPHome Device Builder allows unauthenticated dashboard access via the HA add-on ingress site bound to all interfaces","id":"CVE-2026-59177"},"packages":[{"ecosystem":"npm","fixed":["1.4.4"],"introduced":["0"],"last_affected":[],"package":"functype-mcp-server","purl":null,"source":"GHSA-wcjj-9m6g-2fr2"},{"ecosystem":"npm","fixed":["1.4.4"],"introduced":["0"],"last_affected":[],"package":"functype-mcp-server","purl":"pkg:npm/functype-mcp-server","source":"GHSA-wcjj-9m6g-2fr2"}],"prev":{"headline":"Apache Traffic Server: DoS vulnerability in HTTP/2 via stalled flow-control conditions","id":"CVE-2026-59173"},"products":["functype"],"published":"2026-10-28","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2026-10-28","vendors":["jordanburke"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-59176/"}