OS command injection in mcp-remote when connecting to untrusted MCP servers
mcp-remote is exposed to OS command injection when connecting to untrusted MCP servers due to crafted input from the authorization_endpoint response URL
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 0.0.5, <= 0.1.15
- >= 0.0.5, < 0.1.16
Fixed in 0.1.16
from GitHub Security Advisory GHSA-6xpm-ggf7-wc3p
Mitigation
Upgrade mcp-remote to 0.1.16 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 47 days after publication; not in CISA KEV. First PoC: galgantar/mcp-remote-cve (created 25 Aug 2025, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs · 1 pending
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| galgantar/mcp-remote-cve | 25 Aug 2025 +47 d | 0 | PoC |
| Cyberency/CVE-2025-6514 | 26 Oct 2025 +109 d | 7 | PoC |
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| ChaseHCS/CVE-2025-6514 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 2 PoC reposGET /wait-for-auth
- Query
poll=false- Ports
- 3000, 3128, 8080, 38062
- Seen in
- 2 repos: Cyberency/CVE-2025-6514, galgantar/mcp-remote-cve
- Evidence
- Cyberency/CVE-2025-6514/src/lib/coordination.ts:62 Cyberency/CVE-2025-6514/src/lib/coordination.ts:95 galgantar/mcp-remote-cve/src/lib/coordination.ts:63 galgantar/mcp-remote-cve/src/lib/coordination.ts:96
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/wait-for-auth\?(?:.*&)?poll=false
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [3000,3128,8080,38062] (msg:"GG PoC-Monitor CVE-2025-6514 CVE-2025-6514 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/wait-for-auth"; http.uri; content:"poll=false"; reference:url,poc.griffinguard.io/cve/CVE-2025-6514; classtype:web-application-attack; sid:9892079; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: CVE-2025-6514 exploit attempt (CVE-2025-6514)
id: gg-pocmon-cve-2025-6514-9892079
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-6514. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-6514
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/wait-for-auth'
cs-uri-query|contains|all:
- 'poll=false'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.6514