{"id":"CVE-2026-80347","aliases":["CVE-2026-80347"],"related":[],"kind":"vulnerability","state":"published","title":"mcp-fetch through 1.6.3 Server-Side Request Forgery via Unstripped IPv6 Literal Brackets","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-08-26T10:09:47.977Z","modified":"2026-09-24T20:43:32.537Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"1.6.3","status":"affected"}],"vendor":"kazuph","product":"mcp-fetch","repo":"https://github.com/kazuph/mcp-fetch","source":"cvelist"}],"references":[{"url":"https://github.com/kazuph/mcp-fetch","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://github.com/kazuph/mcp-fetch/issues/16","tags":["exploit","issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://www.npmjs.com/package/@kazuph/mcp-fetch","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/mcp-fetch-through-1.6.3-server-side-request-forgery-via-unstripped-ipv6-literal-brackets","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["George Chen"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-08-26T12:05:01.381Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80347","url":"https://www.cve.org/CVERecord?id=CVE-2026-80347","licence":"CVE Terms of Use","modified":"2026-08-26T12:05:24.996Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80347","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80347","licence":"Public domain","modified":"2026-09-24T20:43:32.537Z"}],"updatedAt":"2026-11-25T22:59:35.357Z","epss":{"score":0.00351,"percentile":0.30775,"date":"2026-12-01T12:00:22.000Z"}}