OAuth discovery security check allows SSRF to private hosts over HTTPS
GHSA-4m5j-jjfc-97gx · published 2026-08-15
- Severity
- Medium
- CVSS score
- Not scored
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 1.2.0
Server-side request forgery (CWE-918), limited to HTTPS targets. A server the client connects to can make the client send GET requests to internal HTTPS services and cloud metadata endpoints it can route to but the attacker cannot. The request fires automatically during OAuth discovery, before the user approves anything. The response is schema-validated, so this is closer to a blind SSRF than a direct read of the target's body, but it still allows reaching internal HTTPS services, probing reachability, and triggering GET-based side effects. HTTP to non-loopback hosts is already blocked, so the gap is specifically HTTPS to private and metadata addresses. …
Upgrade mcp to 1.2.0 or later.
Hostnames are not resolved. A lookup would be a second network request driven by the same untrusted input, and the address it returned need not be the one the connection uses a moment later, so the check would read as a guarantee it cannot make. An internal host that is named rather than addressed, such as https://vault.corp.internal/, is therefore not blocked by the range check; what covers the first hop instead is a stricter rule, namely that the resource_metadata URL must be on the MCP server's own origin. The OAuth connection follows no redirects, so every check applies to the URL that is actually fetched. Egress controls remain deployment guidance rather than something the SDK enforces.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| mcp | RubyGems | <= 1.1.0 | 1.2.0 |
- CriticalMLflow: Unauthenticated full-read SSRF in webhook delivery: _validate_webhook_url bypassed via unvalidated HTTP redirects (and DNS rebindingmlflowExploited
- Critical@zereight/mcp-gitlab Vulnerable to Server-Side Request Forgery@zereight/mcp-gitlab
- CriticalCodeWhale: SSRF bypass - TOCTOU on DNS failure for DNS pinningcodewhale
- Criticalunstructured: Server-Side Request Forgery in the URL-based partitioningunstructured
- CriticalSSRF + LLM API key exfiltration via user-controlled basepath / baseUrl in 8 chat-model nodesflowise, flowise-components
- CriticalLocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLsgithub.com/mudler/LocalAI
- HighMCP Ruby SDK: Ruby SSE Session Poisoningmcp
- HighMCP Ruby SDK: Unbounded JSON-RPC request body causes uncontrolled memory allocation in StreamableHTTPTransportmcp
- HighMCP Ruby SDK: Insufficient Session Binding Allows SSE Stream Hijacking via Session ID Replaymcp
- MediumMCP Ruby SDK: Unbounded session retention in StreamableHTTPTransport allows memory exhaustion via initialize floodmcp
- MediumMCP Ruby SDK: Unbounded line buffer in stdio transports leads to memory exhaustion (DoS)mcp
- MediumMCP Ruby SDK: Streamable HTTP transport lacks DNS-rebinding (Host/Origin) protectionmcp
The impact, patch and workaround text comes from the advisory, shortened (published by the MCP Ruby SDK project). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.