CVE-2026-32871 Details
Description
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.
A vulnerability in FastMCP's OpenAPIProvider prior to version 3.2.0 allows for path traversal attacks that escape the intended API prefix, leading to unauthorized access of backend endpoints. This issue arises because the RequestDirector's _build_url() method directly substitutes path parameter values into the URL without proper URL-encoding. Exploitation of this vulnerability takes place under the context of authenticated Server-Side Request Forgery (SSRF), as the crafted requests include the authorization headers from the MCP provider.
Users can upgrade to FastMCP version 3.2.0 or later, where this vulnerability has been patched. The update ensures that path parameters are properly URL-encoded before being inserted into the URL template, preventing traversal attacks. For those unable to upgrade, a manual workaround involves encoding path parameter values to neutralize traversal sequences before the URL is constructed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:36350 | redhat-SADP | |
| https://access.redhat.com/security/cve/CVE-2026-32871 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2454434 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32871.json | redhat-SADP | |
| https://github.com/PrefectHQ/fastmcp/security/advisories/GHSA-vv7q-7jx5-f767 | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/PrefectHQ/fastmcp/commit/40bdfb6b1de0ce30609ee9ba5bb95ecd04a9fb71 | [email protected] | Patch |
| https://github.com/PrefectHQ/fastmcp/pull/3507 | [email protected] | Issue TrackingPatch |
| https://github.com/PrefectHQ/fastmcp/releases/tag/v3.2.0 | [email protected] | ProductRelease Notes |
| https://github.com/PrefectHQ/fastmcp/security/advisories/GHSA-vv7q-7jx5-f767 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | redhat-SADP |
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| jlowin fastmcp | < 3.2.0 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jul 8, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Apr 10, 2026 | Initial Analysis | [email protected] |
| Apr 2, 2026 | CVE Modified | CISA-ADP |
| Apr 2, 2026 | New CVE Received | [email protected] |