UTC
High

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
What it is

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.

What to do

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.

Affected
PackageRegistryAffectedFixed in
auth-fetch-mcpnpm<= 3.0.03.0.1

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.

Sources: GitHub Advisory Database, reviewed and malware advisories (CC BY 4.0, https://github.com/advisories); advisories published by Cursor (https://github.com/cursor/cursor/security/advisories); advisories published by OpenClaw (https://github.com/openclaw/openclaw/security/advisories); advisories published by vLLM (https://github.com/vllm-project/vllm/security/advisories); advisories published by Open WebUI (https://github.com/open-webui/open-webui/security/advisories); advisories published by n8n (https://github.com/n8n-io/n8n/security/advisories); advisories published by Flowise (https://github.com/FlowiseAI/Flowise/security/advisories); advisories published by Langflow (https://github.com/langflow-ai/langflow/security/advisories); advisories published by the MCP Python SDK project (https://github.com/modelcontextprotocol/python-sdk/security/advisories); advisories published by MLflow (https://github.com/mlflow/mlflow/security/advisories); CISA Known Exploited Vulnerabilities catalog (CC0). Data as of 2026-11-22. ShieldMap describes how each problem works and how to fix it; it does not publish exploit code. Report a correction to [email protected].