Skip to main content
Vulnerability Database/CVE-2026-79538

CVE-2026-79538: MetaMCP Code Execution Vulnerability

CVE-2026-79538 is a remote code execution vulnerability in metatool-ai MetaMCP versions up to 2.4.22 affecting the MCP inspector proxy endpoint. This post covers technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-79538 Overview

CVE-2026-79538 is a code execution vulnerability affecting metatool-ai MetaMCP versions up to and including 2.4.22. The flaw resides in the internal Model Context Protocol (MCP) inspector proxy endpoint GET /mcp-proxy/server/stdio. Specifically, the createTransport function in the STDIO branch of routers/mcp-proxy/server.ts allows unauthenticated network attackers to trigger arbitrary code execution. The weakness is classified as CWE-94: Improper Control of Generation of Code.

Critical Impact

Unauthenticated remote attackers can execute arbitrary code on hosts running MetaMCP, leading to full compromise of confidentiality, integrity, and availability.

Affected Products

  • metatool-ai MetaMCP versions up to and including 2.4.22
  • Deployments exposing the internal /mcp-proxy/server/stdio endpoint
  • MCP inspector proxy component in routers/mcp-proxy/server.ts

Discovery Timeline

  • 2026-09-29 - CVE CVE-2026-79538 published to NVD
  • 2026-09-29 - Last updated in NVD database

Technical Details for CVE-2026-79538

Vulnerability Analysis

MetaMCP is an MCP aggregator that proxies and inspects Model Context Protocol servers. The vulnerable endpoint GET /mcp-proxy/server/stdio invokes createTransport to spin up a STDIO-based transport for downstream MCP servers. In the STDIO branch, request-controlled parameters flow into the process spawning logic without adequate validation or sanitization.

An attacker who can reach the endpoint over the network can supply crafted parameters that cause MetaMCP to launch an attacker-chosen command or arguments. Because the proxy runs with the privileges of the MetaMCP service, code execution occurs in the context of that process.

Root Cause

The root cause is improper control of code generation in createTransport within routers/mcp-proxy/server.ts. The STDIO transport branch trusts client-supplied values used to construct the child process invocation. Combined with the absence of authentication on the internal proxy endpoint, this yields a direct path from an unauthenticated HTTP request to command execution.

Attack Vector

Exploitation requires only network access to the MetaMCP HTTP interface. The attacker issues a GET request to /mcp-proxy/server/stdio with parameters that steer the STDIO transport toward an attacker-controlled binary or arguments. No user interaction and no prior credentials are needed. See the Traceforce Security Advisory for CVE-2026-79538 and the MetaMCP GitHub repository for technical background.

// Verified exploit code is not published. Refer to the Traceforce advisory
// for reproduction details and to the upstream repository for patch status.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-79538

Indicators of Compromise

  • Unexpected GET requests to /mcp-proxy/server/stdio from external or unusual internal sources.
  • Child processes spawned by the MetaMCP service that do not match known MCP server binaries.
  • Outbound network connections initiated by processes descending from the MetaMCP node runtime.

Detection Strategies

  • Inspect HTTP access logs for requests to /mcp-proxy/server/* paths, particularly stdio, and correlate with process creation events.
  • Baseline the set of legitimate MCP server binaries invoked by MetaMCP and alert on deviations.
  • Deploy behavioral endpoint detection to flag shell interpreters or scripting engines spawned as children of the MetaMCP process.

Monitoring Recommendations

  • Forward MetaMCP application logs and host process telemetry to a centralized analytics platform for correlation.
  • Monitor for anomalous outbound connections from hosts running MetaMCP, including reverse shells and unexpected DNS lookups.
  • Track version strings reported by MetaMCP instances to identify installations still at 2.4.22 or earlier.

How to Mitigate CVE-2026-79538

Immediate Actions Required

  • Restrict network access to the MetaMCP HTTP interface using firewall rules or reverse proxy authentication until a patched build is deployed.
  • Take exposed MetaMCP instances offline if they are internet-reachable and cannot be immediately isolated.
  • Audit process execution history on MetaMCP hosts for signs of prior exploitation attempts.

Patch Information

No fixed version is listed in the advisory at the time of publication. Monitor the metatool-ai MetaMCP GitHub repository for a release beyond 2.4.22 that addresses the createTransport STDIO branch, and consult the Traceforce Security Advisory for CVE-2026-79538 for remediation updates.

Workarounds

  • Block or authenticate all requests to /mcp-proxy/server/stdio at an upstream reverse proxy such as Nginx or Traefik.
  • Run MetaMCP as an unprivileged system account inside a container with a read-only filesystem and no shell utilities available.
  • Disable the MCP inspector proxy functionality if it is not required for production workloads.
bash
# Example Nginx configuration to block the vulnerable endpoint
location ~ ^/mcp-proxy/server/stdio {
    deny all;
    return 403;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.