Summary
A missing authentication check in n8n's MCP Browser HTTP transport allows any network-reachable client to initialize sessions and invoke browser-control tools without verification.
When the AI Browser Bridge extension is active, an unauthenticated attacker can remotely drive the user's real browser profile, making this issue critical wherever the MCP endpoint is exposed.
Affected context
This vulnerability arises in n8n deployments that use the @n8n/mcp-browser component in HTTP transport mode (--transport http) without an external authentication or network isolation layer.
It is most relevant when the MCP endpoint is reachable over a local network or the internet and the AI Browser Bridge browser extension is installed and connected.
Under these conditions, the MCP endpoint effectively exposes browser-control capabilities to any party that can send HTTP requests to it.
Exploit preconditions
- Attack surface: HTTP MCP endpoint created by
@n8n/mcp-browserwhen run with--transport http. - Required access: Network reachability to the MCP HTTP port (local network, VPN, or internet, depending on deployment).
- Trigger point: Sending session initialization and tool invocation requests to the MCP endpoint to establish a browser-control session.
- Why exploitation is possible: The endpoint does not enforce authentication or session ownership checks, allowing anonymous clients to bind to the user's active browser bridge and issue commands.
Why this happens
The root cause is a missing authentication enforcement on the MCP Browser HTTP transport endpoint, mapped to CWE-306: Missing Authentication for Critical Function.
The service exposes critical browser-control operations—such as navigation, script execution, and access to cookies and storage—without verifying the identity or authorization of the caller.
In abstract terms, a network-facing control channel was designed to trust any client that can connect, instead of treating session initialization and tool invocation as sensitive operations requiring explicit authentication and access control.
Potential impact
- An attacker may remotely navigate the victim's browser to arbitrary URLs, including phishing or malicious sites.
- An attacker could read or modify cookies and local storage, potentially compromising authenticated sessions on web applications.
- An attacker can execute JavaScript in the context of visited sites, which could lead to data exfiltration or account takeover.
- An attacker may pivot from browser access to broader system compromise by abusing authenticated web applications or sensitive portals.
- An attacker could perform actions on behalf of the user in SaaS platforms, administration consoles, or developer tooling accessed via the browser.
General mitigation guidance
Mitigation generally focuses on enforcing strict authentication and limiting exposure of remote-control interfaces.
Recommended patterns include:
- Treating MCP endpoints as privileged control channels and requiring robust authentication and authorization for session establishment and tool invocation.
- Restricting network access to the MCP Browser HTTP transport via firewall rules, private networks, or localhost-only bindings.
- Implementing explicit session binding so that only the owning user or process can attach to an active browser bridge.
- Designing browser automation integrations with least-privilege capabilities, minimizing access to sensitive data (cookies, storage, authenticated sessions) where feasible.
- Applying secure-by-default configurations so that no unauthenticated HTTP transport is exposed unless consciously enabled with proper safeguards.
How teams detect issues like this
High-level detection approaches may include:
- Reviewing configuration and deployment manifests to identify
@n8n/mcp-browserinstances running with--transport httpon non-local interfaces. - Performing code review to ensure that MCP session initialization and tool invocation endpoints enforce authentication and ownership checks before executing browser-control commands.
- Using static analysis or automated security testing tools to flag unauthenticated entry points exposing critical operations over HTTP.
- Monitoring network traffic and logs for unexpected MCP session creation or tool usage originating from unknown clients, particularly on ports associated with the MCP Browser transport.
- Establishing security policies that prohibit unauthenticated remote-control interfaces and enforce authentication middleware on all externally reachable endpoints.

