NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Other MCP servers and tools

GHSA-7hgr-7h44-33w2: CamoFox MCP: Unauthenticated HTTP MCP browser-control surface

highCVSS 4.0 7.0

camofox-mcp before 1.13.2 serves its Streamable HTTP MCP endpoint at /mcp with a rate limiter but no inbound authentication. In HTTP mode, any client that can reach it can list and call the browser-control tools, and the server adds its own CAMOFOX_API_KEY when it talks to the browser backend. Upgrade to 1.13.2 and set CAMOFOX_HTTP_API_KEY.

Published May 19, 2026 · Analysis Oct 27, 2026

What an attacker can do

In src/http.ts the /mcp route only has express-rate-limit applied. The POST handler builds a server and a StreamableHTTPServerTransport and passes the body straight in. It checks no Authorization header, no inbound key and no allowed hosts.

The CAMOFOX_API_KEY setting looks like protection but guards only the outbound side: src/client.ts attaches it as x-api-key and a Bearer token on calls to the camofox-browser backend. So an unauthenticated MCP caller uses the server's backend credentials without knowing them. The reporter's test against a fake backend listed 46 tools with no auth headers, then called create_tab and navigate, and the backend saw the server-side secret on both calls.

What the attacker gets depends on the browser profile behind it: opening tabs, navigating, interacting with logged-in sessions, and reading page content and screenshots. The default bind is 127.0.0.1, which limits exposure. The risk is highest for HTTP mode exposed to remote MCP clients, Docker port-forwarding or a reverse proxy, or when a web page, a LAN client or another local user can reach the port. The advisory rates it high with that caveat.

Who is affected

npm package camofox-mcp below 1.13.2, only when run in HTTP transport mode (CAMOFOX_TRANSPORT set to http, or the CLI option). Stdio mode does not open the /mcp endpoint. Check the version:

npm ls camofox-mcp

Also check CAMOFOX_HTTP_HOST. The default is 127.0.0.1; anything else, or a published Docker port, widens exposure.

camofox-mcp

Ecosystem
npm
Affected
< 1.13.2
Fixed in
1.13.2
Check
npm ls camofox-mcp

How to fix it

Upgrade to camofox-mcp 1.13.2:

npm install [email protected]

The fix commit 599f56e runs Bearer authentication on /mcp before the JSON body is parsed, so bad requests get a 401 without parse error text. It adds a 403 for unexpected Host headers on loopback, and supports CAMOFOX_HTTP_API_KEY for inbound auth and CAMOFOX_HTTP_ALLOWED_HOSTS. The advisory also describes a startup check that refuses a public bind without an inbound key. Set a strong CAMOFOX_HTTP_API_KEY and have clients send it as a Bearer token. The advisory gives no workaround for old versions; keep the server on loopback or behind an authenticating proxy.

How to tell if you were hit

Check access logs and reverse-proxy logs for POST /mcp requests from hosts that are not your MCP clients, or without an Authorization header. Look at the camofox-browser backend log for tab creation and navigation you did not initiate, especially to unfamiliar URLs. Check ss -tlnp for the HTTP port bound beyond 127.0.0.1. Review recently opened tabs and sessions in the browser profile the backend controls. If an AI agent connects to this server, its MCP tool call history shows what it did; Beam records agent MCP tool calls.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Unauthenticated HTTP MCP browser-control surface in camofox-mcp

Summary

camofox-mcp exposed a Streamable HTTP MCP endpoint at /mcp with rate limiting but no inbound MCP-layer authentication. When HTTP mode was enabled, any client that could reach /mcp could list and invoke browser-control tools.

If CAMOFOX_API_KEY was configured, the server then forwarded that server-side key to the underlying camofox-browser backend. That means an unauthenticated MCP caller could exercise the server's browser authority without knowing the backend browser API key.

Reviewed vulnerable commit: 10e3ac08cb50d830eb4ee00a789229f02f28a1a4 Fixed commit observed on main: 599f56ee40f8062aeca541c251ed1d39fb437f50 Fixed release observed: v1.13.2 Suggested severity: High, with the caveat that default loopback-only deployments reduce practical exposure.

Root cause

In the reviewed commit, src/http.ts creates the Express MCP app and applies only a rate limiter to /mcp:

const app = createMcpExpressApp({ host: config.httpHost });

const limiter = rateLimit({
  windowMs: 60_000,
  limit: config.httpRateLimit,
  standardHeaders: true,
  legacyHeaders: false
});

app.use("/mcp", limiter);

The POST /mcp handler then creates a server and StreamableHTTPServerTransport and passes the request body into the MCP transport without checking Authorization, an inbound API key, allowed hosts, or public-bind safety:

app.post("/mcp", async (req: any, res: any) => {
  try {
    const { server } = createServer(config);
    const transport = new StreamableHTTPServerTransport({ sessionIdGenerator: undefined });

    await server.connect(transport);
    await transport.handleRequest(req, res, req.body);

src/config.ts made HTTP mode configurable and defaulted the HTTP host to loopback, but it did not require an inbound HTTP client secret:

transport: cli.transport ?? envTransport ?? "stdio",
httpPort: cli.httpPort ?? (Number.isNaN(httpPortFromEnv) ? 3000 : httpPortFromEnv),
httpHost: cli.httpHost ?? env.CAMOFOX_HTTP_HOST ?? "127.0.0.1",

Separately, src/client.ts forwarded CAMOFOX_API_KEY server-side to the browser backend:

if (this.apiKey) {
  headers.set("x-api-key", this.apiKey);
  headers.set("authorization", `Bearer ${this.apiKey}`);
}

So CAMOFOX_API_KEY protected the MCP server's outbound requests to the backend browser service, but did not authenticate inbound HTTP MCP clients.

Auth boundary

The vulnerable boundary was the HTTP MCP endpoint. The client did not need to provide Authorization or any CAMOFOX_API_KEY value to call MCP tools.

The default bind was 127.0.0.1, which lowers severity for default local-only deployments. The risky cases are documented HTTP/remote-client deployments, Docker/port-forwarded deployments, or any environment where a browser page, local network client, reverse proxy, or another user can reach the /mcp endpoint.

Proof of concept

I used a fake camofox-browser backend so no real browser was launched and no external navigation occurred. The harness starts the reviewed dist/http.js server with CAMOFOX_API_KEY=server-side-secret, connects an MCP SDK client to /mcp with no auth headers, lists tools, then calls create_tab and navigate.

Observed output:

{
  "authUsedByClient": false,
  "listedToolCount": 46,
  "backendRequests": [
    {
      "method": "POST",
      "url": "/tabs",
      "headers": {
        "authorization": "Bearer server-side-secret",
        "x-api-key": "server-side-secret"
      }
    },
    {
      "method": "POST",
      "url": "/tabs/fake-tab-1/navigate",
      "headers": {
        "authorization": "Bearer server-side-secret",
        "x-api-key": "server-side-secret"
      }
    }
  ],
  "observedUnauthenticatedBrowserControl": true,
  "serverSideSecretForwardedToBackend": true
}

This demonstrates both parts of the issue:

  1. The MCP client used no inbound authentication.
  2. The server still used its configured backend browser secret when forwarding the tool calls.

Impact

An unauthenticated client that can reach the HTTP MCP endpoint can exercise browser-control tools as the MCP server. Depending on the user's active browser profiles and configured backend, that can allow page navigation, tab creation, interaction with authenticated browser contexts, screenshot/content observation, and other browser-automation actions exposed by the MCP tool surface.

The impact is strongest when HTTP mode is intentionally exposed for remote MCP clients or through Docker/reverse-proxy deployment and the operator assumes CAMOFOX_API_KEY protects the whole control plane.

Fix notes

The public issue indicates this has been fixed in 599f56e and released as v1.13.2 by adding dedicated inbound CAMOFOX_HTTP_API_KEY Bearer auth, public-bind startup validation, auth before /mcp JSON parsing, loopback Host-header protection, and optional allowed-hosts handling. Those are the right mitigation directions.

Questions

Does setting CAMOFOX_API_KEY protect the /mcp endpoint?

No. In versions before 1.13.2 that key only authenticates the server's calls to the browser backend. Inbound MCP clients were never checked. Use CAMOFOX_HTTP_API_KEY on 1.13.2 or later.

Am I affected if I use stdio mode?

The vulnerable surface is the HTTP /mcp endpoint, which exists in HTTP mode. The advisory describes only that mode.

Is the default configuration exposed to the network?

The default host is 127.0.0.1, which lowers the practical risk. Docker port-forwarding, a reverse proxy or a changed CAMOFOX_HTTP_HOST can make it reachable.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Other MCP servers and tools vulnerabilities

All Other MCP servers and tools entries