CVE-2026-80347: mcp-fetch through 1.6.3 Server-Side Request Forgery via Unstripped IPv6 Literal Brackets

Published Aug 26, 2026
·
Updated

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.

Affected Software

1 affected component
mcp-fetch mcp-fetch<=1.6.3

Event History

Aug 26, 2026
CVE Published
via MITRE·10:09 AM
Data Sourced
via MITRE·10:09 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker needs to be able to influence the fetch target supplied to mcp-fetch as a tool argument, such as by causing the model to request an attacker-chosen URL. No authentication, user interaction, or special privileges are indicated by the supplied severity vector.

2

What internal resources could be reached?

The bypass can reach IPv6 loopback and private addresses using bracketed IPv6 literals. IPv4-mapped IPv6 notation can also reach IPv4 targets that the guard was intended to block, including link-local metadata endpoints.

3

What is the impact if exploitation succeeds?

mcp-fetch can retrieve responses from internal services and return those responses into the model context. The provided data indicates high confidentiality impact, with no stated integrity or availability impact.

4

Which versions are affected?

The issue affects mcp-fetch through version 1.6.3. The provided information does not identify a fixed version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203