CVE-2026-81091: mcp-use Inspector Proxy Server-Side Request Forgery via Caller-Supplied Target URL

Published Aug 27, 2026
·
Updated

The proxy middleware in mcp-use's inspector forwards requests to a destination the caller names. mountMcpProxy in libraries/typescript/packages/inspector/src/server/proxy/mcp-proxy.ts read the target from the X-Target-URL header or the mcptarget parameter and proxied to it without inspecting the host, so loopback, link-local and private addresses were all accepted, as were names that resolve to them, and the validation was not reapplied to a redirect the destination returned. A caller could therefore make the server issue requests to addresses reachable only from the host it runs on and read the responses. The current code calls isSafeProxyTarget, which checks the resolved address against private, loopback and link-local ranges before proxying and bounds the number of redirects followed.

Affected Software

1 affected component
mcp-use Inspector Proxy Server

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Update the proxy middleware that reads the destination from the X-Target-URL header or __mcp_target parameter so it inspects the resolved host before proxying and re-validates the host for redirects returned by the destination. Do not accept loopback, link-local, or private-address targets.

    mcp-use Inspector Proxy Server (libraries/typescript/packages/inspector/src/server/proxy/mcp-proxy.ts) X-Target-URL / __mcp_target host validation = Re-apply isSafeProxyTarget checks for resolved destination hosts on initial request and on any redirected destinations; reject loopback, link-local, and private address ranges

Event History

Aug 27, 2026
CVE Published
via MITRE·02:50 PM
Data Sourced
via MITRE·02:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:20 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

Any caller that can send requests through the Inspector proxy can supply a destination using the X-Target-URL header or the __mcp_target parameter. No authentication or user interaction is indicated by the provided vector.

2

What internal resources could be exposed?

The proxy could be used to request loopback, link-local, and private network addresses, including hostnames that resolve to those address ranges. An attacker could read responses from services reachable from the Inspector Proxy Server host.

3

Are redirects relevant to exploitation?

Yes. The prior behavior did not reapply target validation after a destination returned a redirect, allowing redirects to potentially reach an unsafe address. The current code bounds redirects and validates resolved addresses before proxying.

4

How can I determine whether my deployment is affected?

Inspect the proxy implementation used by mountMcpProxy. Affected behavior accepts caller-provided X-Target-URL or __mcp_target values without checking the resolved host against private, loopback, and link-local ranges, and does not revalidate redirect targets.

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