← Back to overview

CVE-2026-80347 describes a Server-Side Request Forgery (SSRF) vulnerability in the mcp-fetch package (versions through 1.6.3). The SSRF guard function isSafeUrl fails to strip brackets surrounding IPv6 literals before validation, causing net.isIP to return zero for bracketed addresses and skipping all private-address checks. The fallback DNS resolution also fails for bracketed strings, causing the target to be incorrectly reported as safe. The HTTP client subsequently strips brackets and connects to the actual address. Additionally, isPrivateIPv6 lacks handling for the ::ffff: IPv4-mapped prefix, meaning even partial fixes would remain bypassable. Attackers who can influence model tool arguments can use this flaw to reach loopback, private, and link-local metadata endpoints (e.g., cloud IMDS). Internal responses can then be read back into the AI model context, enabling information disclosure and potential lateral movement within internal networks.

Affected products

  • @kazuph/mcp-fetch
  • mcp-fetch

Related CVE's

  • CVE-2026-80347

Categories

  • Emerging Technologies
  • Supply Chain & Dependencies
  • Web Technologies