CVE-2025-6514: mcp-remote OS Command Injection Vulnerability

mcp-remote Updated 02 Oct 2025

Summary

09/07/2025
Yes i
Critical
9.6

CVE-2025-6514: mcp-remote exposed to OS command injection via untrusted MCP server connections. Affects mcp-remote versions >= 0.0.5, < 0.1.16. Fixed in 0.1.16. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

mcp-remote is an npm package designed for remote communication with MCP servers. It facilitates the interaction between client applications and MCP services, providing essential functionalities for data exchange. However, due to its reliance on external input from untrusted sources, it is vulnerable to OS command injection, which can lead to severe security breaches.

Vulnerability Detail

The vulnerability arises from the way mcp-remote handles input from the authorization_endpoint response URL when connecting to untrusted MCP servers. Maliciously crafted input can exploit this flaw, allowing attackers to execute arbitrary OS commands on the host system. This poses a critical risk, as it can lead to unauthorized access, data breaches, and system compromise. The vulnerability is classified under CWE-78, indicating its nature as an OS command injection issue.

How To Fix

Latest published version: 0.15.2 as of 22 Oct 2026

npm install mcp-remote@0.15.2

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.1.16

This is the first release that contains the fix.

npm install mcp-remote@0.1.16

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid connecting to untrusted MCP servers until the package is updated. Additionally, validate and sanitize any input received from external sources to minimize the risk of command injection.

Conclusion

The mcp-remote package is vulnerable to OS command injection due to improper handling of input from untrusted sources. It is crucial to update to the latest version to mitigate this risk and ensure the security of your applications.

See every vulnerability recorded for mcp-remote →

Share this vulnerability

FAQ

CVE-2025-6514 is a critical vulnerability in the mcp-remote npm package that allows OS command injection through untrusted MCP server connections.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.

Exploitation of this vulnerability can lead to unauthorized OS command execution, data breaches, and complete system compromise.

Run the command 'npm install mcp-remote@0.1.16' in your terminal to update to the patched version.

The CVSS score of this vulnerability is 9.6, indicating a critical level of severity.

How To Fix

Latest published version: 0.15.2 as of 22 Oct 2026

npm install mcp-remote@0.15.2

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.1.16

This is the first release that contains the fix.

npm install mcp-remote@0.1.16

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback