GHSA-pr64-jmmf-jp54: ToolHive: SSRF in remote MCP server authentication discovery (host-side, bypasses container isolation)
ToolHive contains a Server-Side Request Forgery (SSRF) vulnerability in its remote MCP server authentication discovery process. The discovery code runs on the host outside the container sandbox and issues HTTP requests to URLs controlled by the remote MCP server without validating or restricting private IP addresses or redirects. This allows a malicious or compromised MCP server to cause the ToolHive host to fetch arbitrary internal URLs, bypassing intended container isolation. The vulnerability affects all ToolHive versions prior to 0.31.0. The project’s existing URL validation and private IP blocking are not applied to these discovery requests, and the maintainers have incorrectly treated these URLs as trusted, contrary to the security model. No official patch or fix is currently available.
AI Analysis
Technical Summary
ToolHive's remote MCP server authentication discovery issues outbound HTTP requests to attacker-controlled URLs without applying private IP or loopback address guards or redirect restrictions. Although ToolHive runs MCP servers in isolated containers and uses an egress proxy for network isolation, this discovery code executes on the host itself, outside container isolation. A malicious remote MCP server can exploit this by supplying URLs that cause the host to fetch internal resources such as cloud instance metadata, bypassing the intended isolation. The discovery clients explicitly suppress security warnings assuming the URLs are trusted, but this trust assumption is incorrect as the URLs originate from the untrusted remote MCP server. Existing protections like ValidateRemoteURL and IsPrivateIP are not used in this discovery path, and the vulnerability is distinct from other SSRF issues previously reported in ToolHive. The vulnerability affects all versions before 0.31.0, with no known exploits in the wild and no vendor patch currently available.
Potential Impact
An attacker controlling or compromising a remote MCP server can induce the ToolHive host to make arbitrary HTTP requests to internal or private network resources, including cloud instance metadata endpoints. This bypasses ToolHive's container isolation and network egress proxy protections, potentially exposing sensitive internal information or enabling further attacks on the host environment. The vulnerability undermines the core security model of ToolHive by allowing SSRF attacks from an untrusted MCP server to the host system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should be aware that the discovery clients do not apply private IP or redirect restrictions and treat remote MCP server URLs as trusted, which is unsafe. Operators should avoid adding untrusted or unknown MCP servers and monitor ToolHive updates for a forthcoming official fix addressing this SSRF vulnerability.
GHSA-pr64-jmmf-jp54: ToolHive: SSRF in remote MCP server authentication discovery (host-side, bypasses container isolation)
Description
ToolHive contains a Server-Side Request Forgery (SSRF) vulnerability in its remote MCP server authentication discovery process. The discovery code runs on the host outside the container sandbox and issues HTTP requests to URLs controlled by the remote MCP server without validating or restricting private IP addresses or redirects. This allows a malicious or compromised MCP server to cause the ToolHive host to fetch arbitrary internal URLs, bypassing intended container isolation. The vulnerability affects all ToolHive versions prior to 0.31.0. The project’s existing URL validation and private IP blocking are not applied to these discovery requests, and the maintainers have incorrectly treated these URLs as trusted, contrary to the security model. No official patch or fix is currently available.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
ToolHive's remote MCP server authentication discovery issues outbound HTTP requests to attacker-controlled URLs without applying private IP or loopback address guards or redirect restrictions. Although ToolHive runs MCP servers in isolated containers and uses an egress proxy for network isolation, this discovery code executes on the host itself, outside container isolation. A malicious remote MCP server can exploit this by supplying URLs that cause the host to fetch internal resources such as cloud instance metadata, bypassing the intended isolation. The discovery clients explicitly suppress security warnings assuming the URLs are trusted, but this trust assumption is incorrect as the URLs originate from the untrusted remote MCP server. Existing protections like ValidateRemoteURL and IsPrivateIP are not used in this discovery path, and the vulnerability is distinct from other SSRF issues previously reported in ToolHive. The vulnerability affects all versions before 0.31.0, with no known exploits in the wild and no vendor patch currently available.
Potential Impact
An attacker controlling or compromising a remote MCP server can induce the ToolHive host to make arbitrary HTTP requests to internal or private network resources, including cloud instance metadata endpoints. This bypasses ToolHive's container isolation and network egress proxy protections, potentially exposing sensitive internal information or enabling further attacks on the host environment. The vulnerability undermines the core security model of ToolHive by allowing SSRF attacks from an untrusted MCP server to the host system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should be aware that the discovery clients do not apply private IP or redirect restrictions and treat remote MCP server URLs as trusted, which is unsafe. Operators should avoid adding untrusted or unknown MCP servers and monitor ToolHive updates for a forthcoming official fix addressing this SSRF vulnerability.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-pr64-jmmf-jp54
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58196"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- LOW
- Cvss Version
- 4.0
Threat ID: 6a58b40268715ace43d66f1e
Added to database: 07/16/2026, 10:35:46 UTC
Last enriched: 07/16/2026, 10:46:41 UTC
Last updated: 07/16/2026, 10:46:41 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.