← Terug naar overzicht

CVE-2026-81091 is a Server-Side Request Forgery (SSRF) vulnerability in the proxy middleware of mcp-use's inspector component. The vulnerable function mountMcpProxy in mcp-proxy.ts reads the target URL from the X-Target-URL header or __mcp_target parameter and forwards requests without validating the destination host. This allowed callers to direct the server to issue requests to loopback, link-local, and private network addresses, as well as hostnames that resolve to them. Additionally, redirect responses from the destination were not re-validated, enabling redirect-based bypass. An attacker could exploit this to access internal services and read responses from addresses only reachable from the host machine. The fix introduces an isSafeProxyTarget function that checks resolved addresses against private, loopback, and link-local ranges and limits redirect following.

Affected products

  • mcp-use TypeScript inspector package
  • mcp-use inspector

Related CVE's

  • CVE-2026-81091

Categories

  • Emerging Technologies
  • Web Technologies