CVE Study Report — CVE-2025–6514 (mcp-remote)
mcp-remote passed an unvalidated authorization_endpoint URL from a remote MCP server to the operating system's open-URL command. An attacker controlling that server, or able to intercept plaintext HTTP, could run arbitrary commands or executables on the victim's machine.
medium.com
Published on medium.com
CVE-2025–6514 is a critical flaw in mcp-remote, a small proxy used by AI-assisted tools to connect local MCP clients to remote MCP servers. During an OAuth challenge, a remote server supplies an authorizationendpoint.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The helper trusted a URL supplied by an untrusted remote server and handed it to the operating system's URL opener without validation, a confused-deputy mistake.
Impact
An attacker could gain full control of the developer's machine with user privileges, exposing source code, CI/CD tokens, cloud credentials and signing keys, and could tamper with pipelines; Windows hosts are most exposed, while macOS and Linux can still launch arbitrary executables.
What the attacker needed
Victim uses mcp-remote 0.0.5–0.1.15; connects to attacker-controlled MCP server; or plaintext HTTP allows MITM injection
The fix
It was fixed in version 0.1.16, which sanitises and validates URL handling; users should upgrade and enforce HTTPS-only MCP traffic.
How it was found
- The victim connects to an attacker-controlled MCP server, or to a server reached over plain HTTP.
- The server responds to the OAuth challenge with metadata containing a malicious authorization_endpoint.
- mcp-remote passes that URL to the system's open-URL command without validation.
- The operating system launches the crafted URI, executing commands or binaries on the victim's machine.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
mcp-remote is a small helper that lets AI tools talk to remote servers. During login, the remote server tells the helper which web address to open, and the helper opened it without checking. On Windows a specially crafted address can make the computer run commands, so a malicious server could take over the machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.