mcp-remote can run OS commands from untrusted MCP servers
What this means
An attacker who runs a malicious MCP server can run any operating system command on the machine running mcp-remote, with the same access level as that application. This means they could steal data, install malware, change files, or take over the entire system.
SecurityElites Manager Brief: the decision in one minute
mcp-remote versions before 0.1.16 let an attacker run system commands by tricking the application with a fake authorization response. Any company using this library to talk to MCP servers it does not fully control is at risk of a complete system breach.
| SecurityElites Fix-First Score | 51 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 7 days Critical severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Development and DevOps teams managing npm dependencies and service deployments. |
| Likely effort | About 15 minutes: update npm dependency to 0.1.16 and restart affected services. It may take longer if services are deployed across many machines or if you need to rebuild and re-test applications that depend on mcp-remote. |
Questions to ask your team or supplier
- Which services and projects in our codebase use mcp-remote, and do we have a complete list of them?
- What MCP servers do we connect to, and how much do we trust the people or systems that run them?
- Do we have any way to restrict which servers mcp-remote can connect to, and should we add a whitelist?
Message you can forward to the owning team
Security notice: mcp-remote can run OS commands from untrusted MCP servers (CVE-2025-6514)
Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to mcp-remote 0.1.16 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2025-6514-mcp-remote-can-run-os-commands-from-untrusted-mcp-servers/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01582What is at stake in your AI setup
- Keys and tokens for MCP server authentication and AI provider access: an attacker could extract them and use them to call AI services or access other systems.
- Prompts, chat history, and input data: an attacker could read conversation history and training or retrieval data stored locally.
- Tools and integrations connected to the MCP agent: an attacker could use the agent's access to modify, delete, or exfiltrate data from connected systems.
Who is exposed
- Teams using mcp-remote versions 0.0.5 through 0.1.15 to connect to external or third-party MCP servers
- Services that accept user input to choose or configure which MCP server to connect to
- Development environments where untrusted code or MCP server plugins are tested
- Applications that use mcp-remote without validating or restricting the servers they connect to
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| mcp-remote npm | 0.0.5 up to, but not including, 0.1.16 | 0.1.16 or later |
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | No known attacks and no public attack code when CISA last reviewed it |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | None. No login is needed |
| Does a person have to do something | Yes. Someone has to click, open or approve something |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | High |
| Can attackers automate it at scale | No, according to CISA. Each target needs manual work |
| How much control an attacker gains | Total control of the affected software, according to CISA |
Read from the official severity rating: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Kind of coding mistake
- CWE-78: operating system commands can be injected
If you cannot upgrade today
- Until you can upgrade, only connect mcp-remote to MCP servers you have reviewed and fully trust, and that you operate yourself.
- Run mcp-remote with the lowest possible user permissions and in an isolated environment or container with no access to sensitive systems or data.
- Monitor all network connections and child processes spawned by mcp-remote services in real time.
Signs it may already have been used against you
- Review system and process audit logs for unexpected child process spawning or command execution around times when mcp-remote was connecting to servers.
- Check application logs and error logs for shell command output or errors that look like they came from OS execution.
- Search for unusual file modifications, deletions, or creations in the working directory or home folder of the user running mcp-remote.
- Review environment and system logs for signs of privilege escalation, new user accounts, or SSH key additions.
SecurityElites Fix Guide: step by step
- Find where mcp-remote is installedCheck all package.json files in your projects and all running services. Use a dependency scanner or search your codebase for "mcp-remote" in package.json and lock files.
- Check the current versionRun npm list mcp-remote in each project root, or check package-lock.json or yarn.lock directly. Write down every version you find.
- Review which servers are trustedList every MCP server your mcp-remote instances connect to. If any are run by third parties, external partners, or user-provided, those are high risk.
- Update mcp-remote to 0.1.16In each package.json, change mcp-remote to exactly "0.1.16" or "^0.1.16". Run npm install or yarn install to fetch the fixed version.
- Restart all services using mcp-remoteRestart every application or service that imports or uses mcp-remote, including background jobs and scheduled tasks. Confirm they start cleanly with no errors.
- Verify the fix is in placeRun npm list mcp-remote again in each project. Confirm all results show version 0.1.16 or higher. Check a running service with npm list in its directory to confirm it is using the fixed version.
- Check for signs of past misuseReview system logs, process logs, and application logs from before the update. Look for unexpected child processes, command execution, or unusual file writes around the time mcp-remote was running.
- Review and restrict MCP server connectionsChange your code to only connect to MCP servers you fully control or trust. If users can choose which server to connect to, add a whitelist and reject all others.
How to confirm it is fixed: Run npm list mcp-remote and confirm that every result shows version 0.1.16 or higher.
SecurityElites Quick Fixes: copy and paste
Upgrade mcp-remote with npmupgrade
npm install mcp-remote@0.1.16
npm ls mcp-remoteCheck mcp-remote version across a projectfor this issue
npm list mcp-remoteSearch for mcp-remote in all package.json filesfor this issue
find . -name package.json -exec grep -l mcp-remote {} \;Run the service in a locked-down containergeneral hardening
docker run --read-only --cap-drop ALL \
--security-opt no-new-privileges --user 1000:1000 \
-p 127.0.0.1:8080:8080 YOUR_IMAGETest in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2025-6514) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - mcp-remote (npm): must be 0.1.16 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## mcp-remote can run OS commands from untrusted MCP servers (CVE-2025-6514)
**Severity:** Critical | **SE Fix-First Score:** 51/100 | **Fix window:** Within 7 days
**Record:** SE-AIV-01582 https://securityelites.com/ai-vulnerabilities/cve-2025-6514-mcp-remote-can-run-os-commands-from-untrusted-mcp-servers/
### Why this matters
An attacker who runs a malicious MCP server can run any operating system command on the machine running mcp-remote, with the same access level as that application. This means they could steal data, install malware, change files, or take over the entire system.
### What to do
1. Find where mcp-remote is installed
2. Check the current version
3. Review which servers are trusted
4. Update mcp-remote to 0.1.16
5. Restart all services using mcp-remote
6. Verify the fix is in place
7. Check for signs of past misuse
8. Review and restrict MCP server connections
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2025-6514-mcp-remote-can-run-os-commands-from-untrusted-mcp-servers/
### Done when
- [ ] mcp-remote is at 0.1.16 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Run npm list mcp-remote and confirm that every result shows version 0.1.16 or higher.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
The same kind of mistake in other AI tools
- Langflow OSS allows arbitrary code execution through tool listing without admin check High · CVE-2026-128876
- Langflow OSS can run arbitrary code via tool-call interface before admin check High · CVE-2026-128867
- Langflow OSS allows remote code execution through improper code handling High · CVE-2026-127065
- Langflow OSS allows authenticated users to run arbitrary code High · CVE-2026-122088
- Langflow OSS allows authenticated users to run any command on the server High · CVE-2026-120601
Change history
- 9 Jul 2025: Made public
- 2 Dec 2026: Published
Official record
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 type: CWE-78
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2025-6514For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.