CVE-2026-58196
Last modified
CVE-2026-58196 is a medium-severity vulnerability rated 4.7/10 on the CVSS scale. 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.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| stacklok | toolhive | < 0.31.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-58196?
How severe is CVE-2026-58196?
How do I fix CVE-2026-58196?
How Strix Helps
- One Click Account Takeover in GranolaHow a notification link broke out of Electron and led to a one-click account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-58187The Apache Traffic Server multiplexer plugin overruns its ch…7.5
- CVE-2026-58188Several Apache Traffic Server experimental plugins have memo…8.4
- CVE-2026-58189Apache Traffic Server allows redirect-limit bypass when plug…8.2
- CVE-2026-58191Appium is a cross-platform automation framework for all kind…6.1
- CVE-2026-58192Appium is a cross-platform automation framework for all kind…10
- CVE-2026-58195Agentic-Flow is an AI agent orchestration platform. Prior to…8.8
- CVE-2026-58197ToolHive is a utility designed to simplify the deployment an…8.8
- CVE-2026-58198ChatterBot is a machine learning, conversational dialog engi…5.5
- CVE-2026-5820The Zypento Blocks plugin for WordPress is vulnerable to Sto…6.4
- CVE-2026-58200Payload Plugins is a collection of plugins designed to enhan…7.1
- CVE-2026-58201Lokka is a Model Context Protocol server for Microsoft 365, …8.7
- CVE-2026-58203pydantic-settings provides settings management using Pydanti…5.3
Are you affected by CVE-2026-58196?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
