Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-pr64-jmmf-jp54: ToolHive: SSRF in remote MCP server authentication discovery (host-side, bypasses container isolation)

0
Low
Published: 07/15/2026 (07/15/2026, 23:41:21 UTC)
Source: GCVE Database
Product: github.com/stacklok/toolhive

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P

Affected software

Goghsa
github.com/stacklok/toolhive
Affected versions
<0.31.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/16/2026, 10:46:41 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses