The vulnerability exists within the sseHandler function in internal/server/mcp.go. This function, which manages Server-Sent Events (SSE) connections, was hardcoded to set the Access-Control-Allow-Origin HTTP header to *. This permissive CORS policy allows any web page, regardless of its origin, to make requests to the SSE endpoint. This flaw makes the application susceptible to DNS rebinding attacks. An attacker could host a malicious website that, after being visited by a user, could make requests to the user's local MCP Toolbox instance. The browser would allow these requests due to the wildcard CORS policy, enabling the attacker to potentially execute commands and exfiltrate data through the SSE connection. The fix involves removing the line that sets the insecure header, thus enforcing the intended security policies configured through allowed-origins and allowed-hosts flags.