Incident report

mcp-remote OS Command Injection When Connecting to Untrusted Remote MCP Servers

CVE-2025-6514 (CVSS 9.6, published July 9, 2025, disclosed by JFrog Security Research) affected `mcp-remote` versions `0.0.5` through `0.1.15`, the widely adopted OAuth bridge connecting desktop AI clients like Claude Desktop and Cursor to remote MCP servers. When an MCP client initiated authentication against an untrusted or compromised remote MCP server, a malicious `authorization_endpoint` URL returned in OAuth metadata was passed directly into OS URL-opener shell calls, triggering arbitrary OS command execution on Windows and other hosts. Attackers could fully compromise developer workstations merely by convincing a user to connect an AI host to a malicious MCP URL. Maintainers patched URL scheme validation in `mcp-remote` v0.1.16.

Incident record

Reported
Severity
Critical
Vector
Tool/MCP Abuse
Affected system type
Model Context Protocol (MCP) Client Bridges
Reference
CVE-2025-6514
Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2025-6514

Inspect in Interactive Incidents Hub

Defensive lesson

Validate remote OAuth metadata URLs strictly against HTTPS allowlists without shell expansion and vet external MCP servers before client registration.

Referenced techniques