CVE-2025-6514 OS command injection in mcp-remote when connecting to untrusted MCP servers

Critical 9.6 Published Updated

Attackers can execute arbitrary OS commands by providing a malicious authorization endpoint URL to the mcp-remote library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-6514?

CVE-2025-6514 is a critical command injection vulnerability in mcp-remote, published on 9 Jul 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

mcp-remote is exposed to OS command injection when connecting to untrusted MCP servers due to crafted input from the authorization_endpoint response URL

Weakness: CWE-78

Which versions are affected by CVE-2025-6514?

2 open source packages ship an affected version, including mcp-remote.

PackageAffectedFixed in
mcp-remote npmFrom 0.0.50.1.16
mcp-remote npmFrom 0.0.50.1.16

How do I fix CVE-2025-6514?

Upgrade mcp-remote to 0.1.16 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-6514 being exploited?

There is no known exploitation of CVE-2025-6514 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-6xpm-ggf7-wc3p.

Is CVE-2025-6514 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free