Update rmcp to 3.7.0 or later if your app connects to MCP servers over OAuth
Official MCP Rust SDK (rmcp): a malicious MCP server could make your client send requests to internal addresses · Security incident · Web · RustSec · Nov 9, 2026
What happened
RustSec advisory RUSTSEC-2026-0457 (issued 9 Nov 2026) covers rmcp, the official Rust SDK for the Model Context Protocol. From 2.0.0 until 3.7.0 its OAuth client only checked the host string before fetching an authorization server's metadata, without resolving it. A malicious MCP server could name a hostname that resolves to an internal address, and the client would send GET requests there. Bracketed IPv6 loopback addresses also slipped through, and token and registration endpoints were not checked at all, so a malicious authorization server could trigger POST requests to internal services. Impact is client-side SSRF; responses are not returned to the attacker directly. Fixed in 3.7.0.
How to prevent it
Upgrade rmcp to 3.7.0 or later. Only connect your MCP client to servers you trust. If you pass your own HTTP client to the OAuth manager, enforce an outbound address policy yourself, because the new resolved-address checks don't cover custom clients. Keep internal services behind authentication so a stray request from a client can't do damage.
Fix prompt for your own AI tool
Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.
I use MCP, which can read web pages, files, emails or tool output. Help me reduce the risk of prompt injection (hidden instructions in content the AI reads). 1) List what my setup can access (files, terminal, browser, MCP servers, email, databases) and what it can do without asking me. 2) Point out the riskiest combinations, e.g. reading untrusted content while also having access to secrets or the ability to send data out. 3) Suggest concrete settings: require approval for commands and network calls, remove MCP servers I don't need, use read-only tokens, and keep the tool updated. 4) Give me a short checklist to follow before opening untrusted repos or documents. Don't change anything until I've approved your plan. Never ask me to paste API keys, passwords or .env contents; tell me where to check them myself.
Why this keeps happening: trusting agents & ai input
An AI agent treats everything it reads as possible instructions: a web page, a README, an email, a code comment or the output of another tool. If that content was written by an attacker, the agent can be steered into running commands, reading files or sending data somewhere it should not.
A quick checklist before you ship
- Give each agent only the tools and folders it needs for the task at hand.
- Require manual approval before it runs shell commands, sends network requests, deletes files or spends money.
- Do not open untrusted repositories or MCP configs with auto-run turned on.
- Keep API keys and production credentials out of any environment an agent can read.
More on this: every trusting agents & ai input story and our related guide.
Tools involved
Related stories
- If you give an AI agent mcp-server-git, upgrade it to 2026.11.18 or later today, and don't point it at repos you haven't checked
mcp-server-git: six more ways a repo's own Git config could run commands, fixed in 2026.11.18 - Give AI assistant connectors their own scoped, short-lived tokens, never full session tokens
Mittwald's MCP server leaked customer session tokens, and an attacker used them to get into 56 hosting projects - Update mcp-server-git to 2026.11.11 or later, and only point it at repositories whose .git folder you trust
Reference Git MCP server ran attacker commands from a repo's own .git/config during read-only tools
Source: original post on Web ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.