Vulnerable to DNS rebinding attacks when using SSE (http://b/499408790). During the beta phase, we implemented `allowed-origins` and `allowed-hosts` flags to align with MCP security guidelines. However, the hardcoded `Access-Control-Allow-Origin: *` header in the SSE initialization handler was inadvertently retained. This vulnerability specifically impacts users connecting via Toolbox using SSE under specification v2024-11-05.
During the beta phase in MCP Toolbox, `allowed-origins` and `allowed-hosts` flags were introduced to protect against unauthorized access in accordance with MCP security guidelines. However, a hardcoded `Access-Control-Allow-Origin: *` header remained in the SSE initialization handler, which was not covered by this protection. An attacker can exploit this vulnerability through a DNS rebinding attack — a technique that manipulates DNS resolution so that a malicious website gains access to the victim's local resources. This requires user interaction (e.g., visiting a malicious website), after which the attacker can communicate with the local Toolbox instance via SSE.
An attacker can gain unauthorized access to the victim's MCP Toolbox instance, potentially reading, modifying data, or executing commands in the context of connected tools — both on the client side and dependent systems (high impact on confidentiality, integrity, and availability in both scopes).
Apply patches available from the vendor according to the references — a fix is available in the pull request https://github.com/googleapis/mcp-toolbox/pull/3054. Until the update is applied, it is recommended to restrict network access to the MCP Toolbox instance and avoid exposing SSE endpoints on untrusted network interfaces.
Users connecting through Toolbox using SSE according to the v2024-11-05 specification; specific versions indicated in the vendor's references (https://github.com/googleapis/mcp-toolbox/issues/3053)
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X