{"id":"CVE-2026-32871","published":"2026-04-02T14:52:39Z","modified":"2026-07-15T01:07:35Z","title":"FastMCP OpenAPI Provider has an SSRF & Path Traversal Vulnerability","vendor":"PrefectHQ","product":"fastmcp","tier":"tail","description":{"text":"FastMCP is a Pythonic way to build MCP servers and clients. Prior to version 3.2.0, the OpenAPIProvider in FastMCP exposes internal APIs to MCP clients by parsing OpenAPI specifications. The RequestDirector class is responsible for constructing HTTP requests to the backend service. A vulnerability exists in the _build_url() method. When an OpenAPI operation defines path parameters (e.g., /api/v1/users/{user_id}), the system directly substitutes parameter values into the URL template string without URL-encoding. Subsequently, urllib.parse.urljoin() resolves the final URL. Since urljoin() interprets ../ sequences as directory traversal, an attacker controlling a path parameter can perform path traversal attacks to escape the intended API prefix and access arbitrary backend endpoints. This results in authenticated SSRF, as requests are sent with the authorization headers configured in the MCP provider. This issue has been patched in version 3.2.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00946,"percentile":0.61965,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/PrefectHQ/fastmcp/security/advisories/GHSA-vv7q-7jx5-f767","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PrefectHQ/fastmcp/pull/3507","tags":["x_refsource_MISC"]},{"url":"https://github.com/PrefectHQ/fastmcp/commit/40bdfb6b1de0ce30609ee9ba5bb95ecd04a9fb71","tags":["x_refsource_MISC"]},{"url":"https://github.com/PrefectHQ/fastmcp/releases/tag/v3.2.0","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-32871","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2454434","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32871.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:36350","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":19.4,"factors":[{"name":"EPSS percentile","points":12.39},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"prefecthq","affectedVersions":[{"vendor":"PrefectHQ","product":"fastmcp","versions":["< 3.2.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-04-02T15:59:21.963304Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"fastmcp","vulnerableRanges":["<3.2.0"],"patched":["3.2.0"],"from":["GHSA-vv7q-7jx5-f767","PYSEC-2026-338"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in the _build_url() method of the RequestDirector class in fastmcp, the Pythonic framework for building MCP servers and clients, affects its OpenAPIProvider, which exposes backend APIs by parsing OpenAPI specifications. An attacker who can supply a value for an operation's path parameter, and who needs no authentication or user interaction, can use ../ sequences to escape the intended API prefix and reach arbitrary backend endpoints, with requests carrying the provider's configured authorization headers (authenticated SSRF).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:05Z"},"euvd":{"id":"EUVD-2026-18250","exploited":false,"provenance":"source"}}