auth-fetch-mcp: SSRF and disk exfiltration via unvalidated auth_fetch and download_media URLs
GHSA-hv85-774v-26fg · published 2026-05-19
- Severity
- High
- CVSS score
- 8.2
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 3.0.1
1. Cloud credential theft — server on EC2 / GCE / Azure VM. MCP client invokes and receives temporary credentials in the tool response. Or invokes to persist them to disk. 2. Internal service enumeration — MCP client probes private-range hosts (10/8, 172.16/12, 192.168/16). Each authfetch returns the page DOM; each downloadmedia writes the response to disk. 3. Loopback exploitation — server runs alongside Redis (127.0.0.1:6379), ElasticSearch (127.0.0.1:9200), or internal admin UIs. MCP client reads them via authfetch. 4. Disk-write side channel (downloadmedia only) — outputdir is also user-controlled, with no documented restriction.
Upgrade auth-fetch-mcp to 3.0.1 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
Add a assertSafeUrl helper (same shape as in the matching egoist/fetch-mcp advisory) called before any HTTP dispatch — at tools.ts:236 inside the downloadmedia loop, and at the top of navigateTo in browser.ts:53: Where isPrivateOrLinkLocal blocks 127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16, ::1, fc00::/7, fe80::/10. For downloadmedia specifically, also constrain output_dir: resolve it under a fixed root (e.g., ~/.auth-fetch-mcp/downloads/) and reject if the resolved path escapes that root.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| auth-fetch-mcp | npm | <= 3.0.0 | 3.0.1 |
- 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
- 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
- CriticalFastMCP OpenAPI Provider has an SSRF & Path Traversal Vulnerabilityfastmcp
- CriticalBentoML SSRF Vulnerability in File Upload Processingbentoml
- Highauth-fetch-mcp has SSRF Protection Bypass via IPv4-mapped IPv6 Loopbackauth-fetch-mcp
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.