mcp-cve-project

CVE-2025-6514 | mcp-remote OS command injection via malicious OAuth endpoint URL | Critical |

CVE Information

Field Value
CVE / NVD CVE-2025-6514
Date (index) 2025-07-09
Affected product (index) mcp-remote (npm)
GHSA ID GHSA-6xpm-ggf7-wc3p
OWASP MCP Top 10 (2025) MCP01 — Token Mismanagement & Secret Exposure
Published / disclosed 2025-07-09
Ecosystem npm
Component mcp-remote
EPSS score 0.766370000 (FIRST EPSS, 2026-06-30)
CVSS score Critical — 9.6 — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H (NVD CVSS 3.1)
CWE CWE-78
Affected versions See GHSA-6xpm-ggf7-wc3p affected ranges (npm mcp-remote)
Fixed versions See GHSA / npm advisory for patched mcp-remote versions
Fix status Patched
Exploit status Public advisory (GitHub reviewed)
Notes Details below are aligned to the English NVD description at indexing time; re-check NVD for CNA updates.

CVE Breakdown


What is the vulnerability?

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

Attack prerequisites / exposure

Depends on deployment: many MCP issues require a reachable HTTP/SSE listener, a malicious remote MCP server, a poisoned project/workspace config, or a victim opening attacker-influenced content. Treat developer workstations and shared CI runners as high-value targets when MCP servers run with host access.

CVE is because of what bug?

See the NVD description and linked references for the upstream root cause; CWE rows above summarize the weakness mapping published by NVD.

MCP-specific impact / why it matters

MCP extends an agent’s reach into tools, hosts, and cloud APIs. Failures in transport authentication, logging, URL validation, session binding, or local config loading frequently become RCE, credential theft, SSRF, or session hijacking in MCP-shaped deployments.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here after reviewing the linked upstream commit / tag diff (do not paste weaponized payloads).

Fix / Remediation

Upgrade to vendor-fixed versions where available, reduce network exposure (bind to localhost, require auth on HTTP transports), and apply standard MCP deployment hygiene (tool allowlists, egress controls, separate secrets from logs).

Upstream fix (open source)

Workarounds / mitigations

Detection / verification

Patch

https://github.com/geelen/mcp-remote/commit/607b226a356cb61a239ffaba2fb3db1c9dea4bac