Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-51995 Overview
CVE-2026-51995 is an information disclosure vulnerability affecting geelen/mcp-remote versions 0.1.32 through 0.1.38. The flaw resides in the src/lib/authorization-server-metadata.ts and src/lib/utils.ts components. A remote, unauthenticated attacker can obtain sensitive information through the OAuth authorization server metadata handling. Related advisory material indicates the issue stems from Server-Side Request Forgery (SSRF) behavior in the authorization server metadata flow, which an attacker can abuse to retrieve data from unintended destinations. The weakness is categorized under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Critical Impact
Remote attackers can retrieve sensitive information from mcp-remote deployments without authentication or user interaction, exposing OAuth-related data and reachable internal endpoints.
Affected Products
- geelen/mcp-remote version 0.1.32
- geelen/mcp-remote versions 0.1.33 through 0.1.37
- geelen/mcp-remote version 0.1.38
Discovery Timeline
- 2026-09-24 - CVE-2026-51995 published to NVD
- 2026-09-24 - Last updated in NVD database
Technical Details for CVE-2026-51995
Vulnerability Analysis
mcp-remote is a client bridge for the Model Context Protocol (MCP) that connects local MCP clients to remote MCP servers over HTTP, including handling OAuth authorization flows. The vulnerability affects how the client fetches and processes authorization server metadata.
According to the linked advisory, the flaw is an SSRF condition in the authorization server metadata resolution path. The client follows attacker-influenced URLs when discovering OAuth endpoints and returns the response content back to the caller. This behavior enables an unauthenticated remote attacker to coerce the client into issuing requests to arbitrary hosts and expose the returned data.
Because the attack vector is network-based and requires no privileges or user interaction, exploitation can be automated against exposed mcp-remote instances. Confidentiality is directly impacted, while integrity and availability are not affected.
Root Cause
The root cause is insufficient validation of URLs and response handling in src/lib/authorization-server-metadata.ts and helper logic in src/lib/utils.ts. The components accept externally influenced authorization server identifiers and fetch metadata without strict allowlisting, scheme enforcement, or origin checks. This classifies as [CWE-200] information exposure, driven by an underlying SSRF primitive described in the SSRF Advisory.
Attack Vector
An attacker directs an mcp-remote client toward a malicious or attacker-controlled authorization server reference. During metadata discovery, the client issues outbound HTTP requests to attacker-specified URLs. The response content, including data retrieved from internal services reachable by the client, is exposed back through the client flow. See the GitHub OAuth Security Readme for the researcher's full write-up and the upstream geelen/mcp-remote repository for the affected code.
No verified proof-of-concept code is published in the NVD record; refer to the linked advisories for technical reproduction details.
Detection Methods for CVE-2026-51995
Indicators of Compromise
- Outbound HTTP requests from hosts running mcp-remote to unexpected authorization server URLs, internal IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), or cloud metadata endpoints such as 169.254.169.254.
- Requests to /.well-known/oauth-authorization-server or /.well-known/openid-configuration paths on hosts that are not legitimate identity providers.
- Presence of mcp-remote package versions 0.1.32 through 0.1.38 in package.json or package-lock.json files.
Detection Strategies
- Inventory Node.js and MCP client environments for installed mcp-remote versions using software composition analysis.
- Inspect proxy and egress logs for authorization server metadata fetches originating from MCP client processes to non-approved hosts.
- Correlate MCP client process execution with outbound DNS queries resolving to internal or metadata-service addresses.
Monitoring Recommendations
- Enable egress filtering and log every outbound connection from systems hosting MCP clients.
- Alert on mcp-remote processes connecting to IP literals, link-local addresses, or private ranges.
- Monitor configuration changes that introduce new remote MCP server URLs or authorization server endpoints.
How to Mitigate CVE-2026-51995
Immediate Actions Required
- Identify all installations of geelen/mcp-remote in the range 0.1.32 through 0.1.38 and upgrade to a fixed release once published by the maintainer.
- Restrict outbound network access from hosts running mcp-remote to a known allowlist of authorization servers.
- Block access from MCP client hosts to internal management interfaces and cloud instance metadata services.
Patch Information
Consult the geelen/mcp-remote Security Advisories page and the upstream geelen/mcp-remote repository for the fixed version and release notes. Verify the installed version with npm ls mcp-remote and update using npm install mcp-remote@latest once a patched release is available.
Workarounds
- Pin mcp-remote configuration to a static, trusted authorization server URL and reject dynamic overrides.
- Place mcp-remote behind an egress proxy that enforces an allowlist of permitted OAuth discovery endpoints.
- Remove or disable mcp-remote on systems where it is not required until a patched release is applied.
# Configuration example: inspect and remove vulnerable mcp-remote versions
npm ls mcp-remote
npm uninstall mcp-remote
# Reinstall only after a patched version is published
npm install mcp-remote@latest
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

