CVE-2025-6514: Mcp remote Mcp-remote Exposed To OS Command Vulnerability

CRITICAL
Advisory Identifier: GHSA-6xpm-ggf7-wc3p
CVSS 9.6
CWE-78
Published
Advisory Summary

CVE-2025-6514 is a CRITICAL (CVSS 9.6) mcp-remote exposed to os command vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Mcp remote libraries in the npm ecosystem. The issue involves mcp-remote exposed to os command injection via untrusted mcp server connections. Remediation is available by upgrading affected packages to version 0.1.16.

CVE-2025-6514 at a Glance

CVE Identifier CVE-2025-6514
GHSA Identifier GHSA-6xpm-ggf7-wc3p
Severity CRITICAL
CVSS v3.1 Base Score 9.6
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product Mcp remote
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2025-6514

To remediate this vulnerability, upgrade all affected Mcp remote dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mcp-remote fixed: 0.1.16
npm install mcp-remote@0.1.16
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls mcp-remote

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-6514, inspect your project dependencies using npm:

npm ls mcp-remote

Analyze the terminal output to locate any version of Mcp remote in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.16), your application is affected.

Note: The npm ls mcp-remote command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Mcp remote, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2025-6514 Affected Mcp remote Versions

1 component(s)
Fixed Versions:
0.1.16
Product / Package Ecosystem Affected Versions Fixed Version
mcp-remote
npm
≥ 0.0.5
< 0.1.16
0.1.16

References

Frequently Asked Questions

What is CVE-2025-6514?
CVE-2025-6514 is a security vulnerability in Mcp remote involving mcp-remote exposed to OS command injection via untrusted MCP server connections under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which Mcp remote versions are affected?
Affected versions include releases prior to 0.1.16 across affected packages: mcp-remote.
What version fixes CVE-2025-6514?
Upgrading to 0.1.16 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mcp-remote affected?
Yes, mcp-remote is affected in releases prior to 0.1.16. Upgrade your dependency to 0.1.16 or later.
What is the CVSS score of CVE-2025-6514?
CVE-2025-6514 has a CVSS v3.1 base score of 9.6 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2025-6514?
CVE-2025-6514 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check npm dependencies for CVE-2025-6514?
Run the dependency tree command: 'npm ls mcp-remote'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6xpm-ggf7-wc3p",
  "modified" : "2025-07-09T18:08:44Z",
  "published" : "2025-07-09T15:30:44Z",
  "aliases" : [ "CVE-2025-6514" ],
  "summary" : "mcp-remote exposed to OS command injection via untrusted MCP server connections",
  "details" : "mcp-remote is exposed to OS command injection when connecting to untrusted MCP servers due to crafted input from the authorization_endpoint response URL",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "mcp-remote"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.0.5"
      }, {
        "fixed" : "0.1.16"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-6514"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/geelen/mcp-remote/commit/607b226a356cb61a239ffaba2fb3db1c9dea4bac"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/geelen/mcp-remote"
  }, {
    "type" : "WEB",
    "url" : "https://jfrog.com/blog/2025-6514-critical-mcp-remote-rce-vulnerability"
  }, {
    "type" : "WEB",
    "url" : "https://research.jfrog.com/vulnerabilities/mcp-remote-command-injection-rce-jfsa-2025-001290844"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-78" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-09T18:08:44Z",
    "nvd_published_at" : "2025-07-09T13:15:24Z"
  }
}