fetch: private-address guard bypass via IDNA hostnames (check and connect resolve different names)
GHSA-v38p-wf49-hx2j · published 2026-10-25
- Severity
- Medium
- CVSS score
- 6.3
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 2026.10.24
Server-side request forgery (CWE-918) through a bypass of the default egress guard. Affected: anyone running mcp-server-fetch 2026.10.10 with default settings, typically as a tool for an AI agent. The guard exists to stop a model-supplied URL, for example one planted by prompt injection in fetched content, from reaching loopback services, RFC 1918 hosts and cloud metadata endpoints from the machine running the server. With this bypass an attacker who controls any domain gets that access back, and the response is returned to the model, so it can be read or passed on. …
Upgrade mcp-server-fetch to 2026.10.24 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.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| mcp-server-fetch | PyPI | >= 2026.10.10, <= 2026.10.19 | 2026.10.24 |
- 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
- Mediumfetch: small page OOMs the server during HTML-to-Markdown conversionmcp-server-fetch
- Mediumfetch: robots.txt User-agent groups cause quadratic memory blowupmcp-server-fetch
- Lowfetch: robots.txt is ignored when it starts with a UTF-8 BOMmcp-server-fetch
- Lowfetch: punycode charset in Content-Type hangs the server for 16 minmcp-server-fetch
- LowIncomplete fix for GHSA-3rxj-6jhw-qfv7: robots.txt path normalisation in mcp-server-fetch still misses backslash and path-parameter spellingmcp-server-fetch
- Lowmcp-server-fetch: IPv6 site-local fec0::/10 classified as public (SSRF guard classifier gap, CWE-918)mcp-server-fetch
The impact, patch and workaround text comes from the advisory, shortened (published by the MCP reference servers project). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.