CVE-2026-58196 Details
Description
ToolHive is a utility designed to simplify the deployment and management of Model Context Protocol (MCP) servers. Prior to 0.31.0, remote.Handler.Authenticate in pkg/auth/remote/handler.go invokes discovery.DetectAuthenticationFromServer in pkg/auth/discovery/discovery.go, whose host-side HTTP clients trust remote-server-controlled authentication discovery destinations, follow redirects without host or scheme restrictions, and do not consistently block private addresses. A malicious or compromised remote MCP server can place a resource_metadata URL in WWW-Authenticate for ParseWWWAuthenticate to extract, after which FetchResourceMetadata, OIDC issuer discovery, and well-known discovery can issue GET requests to link-local, RFC1918, or other internal services outside the server's container. The user connects to a server that the user intends to use, but the server controls the internal destination; this path does not depend on the separate NAT64 guard omission because the affected clients did not invoke IsPrivateIP, and it differs from the DCR resolver path that already refused redirects. The demonstrated primitive reaches internal-only HTTP services and reachability or error oracles, and can retrieve AWS metadata credentials where IMDSv1 accepts an unauthenticated GET, while IMDSv2 and GCP metadata prerequisites are not satisfied by the demonstrated request. This vulnerability is fixed in 0.31.0.
A server-side request forgery (SSRF) vulnerability has been identified in ToolHive, a utility for managing Model Context Protocol (MCP) servers. This vulnerability exists in versions prior to 0.31.0, specifically in the authentication discovery process with remote MCP servers. The issue arises because the HTTP clients used for authentication discovery trust URLs provided by the remote server, follow redirects without proper restrictions, and do not consistently block access to private addresses. As a result, a malicious or compromised remote MCP server can manipulate the discovery process to access internal services or cloud metadata endpoints, bypassing the intended isolation of ToolHive's containerized environment.
Users can update to ToolHive version 0.31.0 or later, where this vulnerability has been fixed.
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.
Volerion
Assessed Sep 15, 2026CISA-ADP
Assessed Sep 15, 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://github.com/stacklok/toolhive/security/advisories/GHSA-pr64-jmmf-jp54 | CISA-ADP | AdvisoryRemedyVendor |
| https://github.com/stacklok/toolhive/commit/4ea6afb9048ddec1d56875fa9e0da36d65c15966 | [email protected] | Source CodeVendor |
| https://github.com/stacklok/toolhive/releases/tag/v0.31.0 | [email protected] | Release NotesVendor |
| https://github.com/stacklok/toolhive/security/advisories/GHSA-pr64-jmmf-jp54 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Stacklok ToolHive | < 0.31.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 15, 2026 | CVE Modified | CISA-ADP |
| Sep 15, 2026 | New CVE Received | [email protected] |
Volerion