| Field | Value |
|---|---|
| CVE / NVD | CVE-2026-80347 |
| Date (index) | 2026-08-26 |
| Affected product (index) | mcp-fetch checks a fetch target against its SSRF guard without removing the brackets that surround an IPv6 literal. |
| GHSA ID | None — no GitHub advisory published (search) |
| OWASP MCP Top 10 (2025) | MCP07 - Insufficient Authentication & Authorization |
| Published / disclosed | 2026-08-26 |
| Ecosystem | Application / upstream project |
| Component | mcp-fetch checks a fetch target against its SSRF guard without removing the brackets that surround an IPv6 literal. |
| EPSS score | 0.003510000 (FIRST EPSS, 2026-09-26) |
| CVSS score | High / 8.7 |
| CWE | CWE-918 |
| Affected versions | <= 1.6.3, v1.6.3, v1.6.2, v1.6.1, v1.6.0, v1.5.2, v1.5.1, v1.5.0, v1.4.2, v1.4.1, v1.3.3, v1.3.2, v1.3.1, v1.3.0, v1.2.0, v1.1.3, v1.1.2, v1.1.1, v1.1.0, v1.0.0 |
| Fixed versions | None published in NVD/OSV |
| Fix status | Unfixed |
| Exploit status | Public advisory / public CVE record |
| Notes | Added during 2026-09-07 gap review against NVD, GitHub Advisory Database, OSV, OpenCVE, and related MCP advisory searches. |
mcp-fetch checks a fetch target against its SSRF guard without removing the brackets that surround an IPv6 literal. isSafeUrl reads the hostname from the parsed URL, which for a literal such as http://[::1]/ yields the bracketed string, and then tests it with net.isIP. That call returns zero for a bracketed value, so the branch holding the private-address checks is skipped entirely. The guard falls back to resolving the hostname, the bracketed string is not a resolvable name, no addresses are returned, and the target is reported safe. The HTTP client then strips the brackets and connects. Because the address may be given in IPv4-mapped form, the same path reaches any IPv4 target the loopback and private checks were meant to exclude, including link-local metadata endpoints. isPrivateIPv6 also has no case for the ::ffff: prefix, so the mapped form would still pass even if the brackets were removed. The fetch target is supplied as a tool argument, so an attacker who can influence what the model requests can read internal responses back into the model context.
Exposure depends on deployment: reachable MCP transports, enabled MCP tools, local listeners without robust Host/Origin/authentication checks, or trusted workspace/project MCP configuration treated as safe input.
The issue maps to CWE-918; review the upstream advisory for the exact vulnerable code path and patched implementation.
This issue affects an MCP server, SDK, gateway, client, integration, or MCP-enabled workflow where tool execution, transport exposure, secrets, files, or authorization boundaries are part of the risk surface.
Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory.
Upgrade to the vendor-fixed version where available. Restrict MCP listeners to trusted networks, require authentication for HTTP/SSE/Streamable HTTP transports, validate Host and Origin headers, constrain filesystem and command-execution tools, and treat project/workspace MCP configuration as untrusted input.
Prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.