Skip to main content
Menu
Advisories

ruvocal mcp-bridge: a web page can drive the bridge on loopback when no token is set (CORS * and DNS rebinding)

GHSA-8JJW-XQG5-7PVXPublished Updated GitHub

Description

Impact

In ruflo/src/ruvocal/mcp-bridge/index.js (around lines 1065-1100), requireAuth lets every request through when MCP_AUTH_TOKEN is unset, and MCP_CORS_ORIGIN defaults to *. The preflight is answered with 204 and allows Content-Type.

Any web page the operator visits can therefore send JSON-RPC to 127.0.0.1:3001 and read the response. That exposes the default memory, agents, config, github, system and hooks tools. There is no Host check, so DNS rebinding also works.

The Host/Origin refusal added for #4510 and #4517 went into @claude-flow/mcp and does not cover this separate express server. The non-loopback bind guard (line 1954) does not help, because the attack comes from the operator's own browser.

Fix

When no token is set, refuse requests that carry an Origin header or a non-loopback Host, send no CORS header by default, or generate a token on first run.

Affected versions

References

GitHub · ruvnet/ruflo