Skip to content
Blog

News

MCP reference server advisory: keys readable by web pages

A security advisory published on 25 October 2026 says that the HTTP modes of an MCP reference server could hand a computer's environment variables, including API keys, to any web page open in the developer's browser. It was rated moderate and has a fix. It is still a good reminder that local tools are reachable in ways their owners forget. This post explains what the advisory says in plain terms, who is affected, and how to check and protect yourself, with a short list of habits that apply to any MCP server you run.

Published · 6 min read

News card on mcp server security and an advisory about environment secrets

Key takeaways

  • The advisory covers the HTTP transports of the server-everything package, not the default stdio mode.
  • A web page open in your browser could, according to the advisory, call the server and read its environment variables.
  • Upgrade to 2.0.1, or bind to localhost, restrict CORS, remove the environment tool and add a token.
  • Keep long-lived API keys out of the environment of any server you do not fully trust.

What the advisory says

On 25 October 2026 a GitHub security advisory, GHSA-mvf5-2qqv-rg3c, was published for @modelcontextprotocol/server-everything, a reference server from the Model Context Protocol project (GitHub advisory). It is titled as a cross-origin environment variable exfiltration issue, rated moderate with a CVSS score of 6.5, and has no CVE number.

According to the advisory, the package's HTTP servers (the SSE and streamable HTTP transports) listen on all network interfaces, allow requests from any website through wildcard cross-origin settings, and require no authentication. Its get-env tool returns the whole process environment, which often contains API keys and credentials. Put together, a web page open in a developer's browser could call the server across origins and read those secrets without the developer noticing.

The advisory says the stdio transport, which is the default, is not affected.

Who is affected

The advisory lists these versions as affected:

  • Versions from 2025.9.24 through 2026.8.31, under the older date-based numbering.
  • Versions from 1.0.0 up to but not including 2.0.1.

The patched version is 2.0.1. One practical wrinkle: the package moved from date-based version numbers to semantic ones, so your package manager may not offer 2.0.1 as an upgrade. If you are on a date version, install it by name. The advisory gives the command npm install @modelcontextprotocol/[email protected].

Security roundup site Adversa AI, in its November 2026 digest, also listed an advisory for the FastMCP library about OAuth client wrappers that could send a client secret to an untrusted authorisation server, with a fix in 4.1.2 and a recommendation to rotate reusable credentials (Adversa AI). We have not read that advisory ourselves, so check the original before acting on it.

Why a local server is not automatically private

It is easy to assume that a server running on your own machine can only be reached by you. Browsers break that assumption. Any page you open can send requests to addresses on your computer, and if the server answers anyone, the page can read the answer. The MCP project's own security guidance warns that local servers can be reached by other processes and recommends using stdio where possible, or requiring an authorisation token if you use HTTP (MCP security best practices).

What to do now

  1. Find out if you run it. Search your projects and setup scripts for the package name.
  2. Check how. Is it started with stdio or an HTTP mode? Only the HTTP modes are in scope.
  3. Upgrade to 2.0.1 by naming it explicitly.
  4. Rotate API keys that were in the environment of any HTTP instance that has been running while you browsed the web. You cannot know that nothing read them.
  5. Apply the general fixes below to every MCP server you run.

How to tell whether your own server is open

You do not need special tools for a first check. Look at how the server is started, and at its settings. Three things should make you pause: a listen address of 0.0.0.0, which means every network interface; a response header that says any origin is allowed, usually written as an asterisk; and a missing token or sign-in step on the HTTP endpoint. If all three are true, treat the server as open to any web page you visit. Fix one at a time, and test again after each change. If you are not sure what a setting does, run the server over stdio instead, which keeps it reachable only by the program that started it.

Four fixes from the advisory

FixWhat it doesEffort
Bind to 127.0.0.1, not all interfacesKeeps other machines on your network outOne setting
Restrict cross-origin access to localhostStops arbitrary websites calling the serverOne setting
Remove the environment tool, or gate it behind a flagRemoves the easiest path to the secretsSmall change
Add a bearer token to HTTP transportsMakes every call prove who it isSmall change
Mitigations the advisory recommends for HTTP deployments. Upgrading to 2.0.1 is the simplest single step.

A scenario to picture it

This is an illustrative example. A developer, Aisha, is trying out an MCP client. She starts a reference server over HTTP on her laptop, with her payment-provider test key and a cloud key in her shell environment. She leaves it running and spends the afternoon reading articles.

One page she opens, an ordinary-looking blog with a compromised ad, contains a few lines of script. The script tries addresses on her laptop, finds the server, calls the environment tool and sends the result to a stranger. Nothing on screen changes.

Had she used the stdio mode, the page could not have reached the server. Had she bound to localhost with a token, the script's request would have been refused. And had the cloud key not been in her environment at all, there would have been nothing to read.

The lesson for keys

Good MCP server security starts with asking what the server can read. The protocol's own Model Context Protocol security guidance is worth a read, and it applies to MCP API keys as much as to anything else you put in a server's reach.

The advisory is about one package, but its lesson is about where keys live. Environment variables are convenient, and OWASP's secrets guidance calls them a last resort because they can end up in logs and dumps (OWASP). Anything that can read the environment can read the key.

One answer is not to put the key where tools can read it. That idea has a name, credential brokering. With a broker, the key stays with the broker and the tool only holds a narrow grant. That is the idea behind AI agent API key security, and our guide to giving an agent API access shows the steps. SecretPigeon has its own MCP server, and the developers page documents how it authenticates.

Questions people ask

Is the MCP everything server safe?

Per the advisory, versions before 2.0.1 had a problem in the HTTP transports, where an unauthenticated server with open cross-origin settings could return environment variables to a web page. The stdio default was not affected. Upgrade to 2.0.1 if you used the HTTP modes.

How do I secure a local MCP server?

Prefer stdio. If you need HTTP, bind to 127.0.0.1, restrict cross-origin access to localhost, require a bearer token, and keep sensitive keys out of the server's environment.

Can a website read my MCP server's secrets?

It can if the server listens for HTTP, accepts requests from any origin, requires no authentication and exposes the secrets, as the advisory describes for the affected versions. Authentication and origin limits prevent it.

Do I need to rotate keys after this advisory?

If an affected HTTP instance was running with real keys in its environment while you browsed the web, rotating them is the cautious choice, because you cannot prove nothing read them.