Skip to content
EventPast event

MCP reference server cross-origin environment variable leak vulnerability

2 reports2 reporting sourcesLatest report

Start here

AI overview

The official MCP servers repository published security advisory GHSA-mvf5-2qqv-rg3c on October 25, stating that the HTTP transport of the reference server server-everything lacks authentication, its cross-origin configuration is overly permissive, and the get-env tool returns process environment variables; the advisory is rated moderate severity, and the fixed version is 2.0.1. Related analysis states that the default stdio transport is not affected by this HTTP exposure chain, and the risk must pass through four stages in sequence: the HTTP entry point being reachable, the page being permitted to read cross-origin responses, the request reaching a sensitive tool, and the return value crossing the data boundary.

Generated by AI from reports · Updated 2026-11-01

Storyline

Developments on the same subject and issue, from earliest to latest

5 events
  1. · 1 reports· Attention40
    MCP fetch server SSRF vulnerability CVE-2026-104120 has no fix
  2. · 3 reports· Attention43
    MCP reference servers v2.1.0 fix 8 vulnerabilities, including a symlink check bypass
  3. · 2 reports· Attention41

    MCP reference server cross-origin environment variable leak vulnerabilityThis event

  4. · 9 reports· Attention44
    MCP reference servers v2.4.0 fix six vulnerabilities across three servers
  5. · 2 reports· Attention37
    mcp-server-git new version fixes 5 critical vulnerabilities

Progress timeline

Oct 31
  1. WeChat · Oxo Security
    Why would an MCP example running on the local machine hand environment variables to a web page?

    On October 25, the official MCP servers repository published GHSA-mvf5-2qqv-rg3c, stating that the affected HTTP transport in server-everything lacks authentication and has an overly permissive cross-origin configuration, and that the get-env tool returns process environment variables; the advisory rates it medium severity, and the fixed version is 2.0.1. The article explains that the default stdio transport is not affected by this HTTP exposure chain, and breaks the risk into four stages: the HTTP entry point is reachable, the page is permitted to read cross-origin responses, the request reaches a sensitive tool, and the return value crosses the data boundary. The author recommends validating Origin per the MCP transport specification and binding local services only to the loopback address with authentication configured, because tightening the listening address alone cannot block requests initiated by a local browser. When investigating, first confirm whether SSE or Streamable HTTP is actually enabled and record the package version and listening address, rather than printing the full environment variables.

Oct 25
  1. MCP Reference ServersSelected
    Cross-origin environment variable leakage in the MCP reference server server-everything

    The MCP reference server package @modelcontextprotocol/server-everything has a cross-origin environment variable leakage vulnerability: any webpage opened in the developer's browser can, without interaction, steal all API keys and credentials in the process environment. Its SSE and StreamableHTTP transports bind to 0.0.0.0, use wildcard CORS, and have no authentication; the get-env tool returns the entire process.env as-is. A proof of concept dated 2026-03-17 verified that a single tools/call returned 47 environment variables. The default stdio transport is not affected. Earlier versions, although they do not send permissive CORS headers, remain exposed to DNS rebinding risk.