# CVE-2026-32871: FastMCP OpenAPI Provider has an SSRF & Path Traversal Vulnerability

- Severity: Critical 10.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.04%, higher than 65% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-31T22:53:21.000Z
- Modified: 2026-10-27T17:00:03.994Z
- Also known as: GHSA-vv7q-7jx5-f767, PYSEC-2026-338
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- PrefectHQ fastmcp: < 3.2.0
- satellite/foreman-mcp-server-rhel9: no versions given (not affected: from 1782739344 before *)
- rhoai/odh-mlflow-rhel9: no versions given
- rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9: no versions given
- rhoai/odh-pipeline-runtime-minimal-cpu-py312-rhel9: no versions given
- rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9: no versions given
- rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9: no versions given
- rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9: no versions given
- rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9: no versions given
- rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9: no versions given
- rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9: no versions given
- fastmcp (PyPI): before 3.2.0
- jlowin fastmcp: before 3.2.0

## Every score

- GitHub_M: CVSS:4.0 10.0 Critical `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`
- redhat-SADP: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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`
- NVD: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/PrefectHQ/fastmcp/security/advisories/GHSA-vv7q-7jx5-f767> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/PrefectHQ/fastmcp/pull/3507> (issue-tracking, patch, web)
- <https://github.com/PrefectHQ/fastmcp/commit/40bdfb6b1de0ce30609ee9ba5bb95ecd04a9fb71> (patch, web)
- <https://github.com/PrefectHQ/fastmcp/releases/tag/v3.2.0> (product, release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-32871> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2454434> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32871.json> (web)
- <https://access.redhat.com/errata/RHSA-2026:36350> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32871> (advisory)
- <https://github.com/PrefectHQ/fastmcp> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/fastmcp/PYSEC-2026-338.yaml> (web)
- <https://pypi.org/project/fastmcp> (package, web)
- <https://github.com/advisories/GHSA-vv7q-7jx5-f767> (advisory)

## Sources

- CVE List: [CVE-2026-32871](https://www.cve.org/CVERecord?id=CVE-2026-32871), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-vv7q-7jx5-f767](https://github.com/advisories/GHSA-vv7q-7jx5-f767), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2026-32871](https://nvd.nist.gov/vuln/detail/CVE-2026-32871), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-338](https://osv.dev/vulnerability/PYSEC-2026-338), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2026-32871 · Whole record: https://cve.day/CVE-2026-32871.json · Rebuilt by cve.day 2026-11-25T22:59:17.786Z
