Summary
ToolHive runs MCP servers as containers and, with network isolation on, it puts each workload on its own Docker network named toolhive-<name>-internal. That network is created with Docker’s internal flag. The workload’s sanctioned route out is the egress proxy, which applies the configured permission profile and logs what it forwards. The isolation is the thing standing between a third-party MCP image and whatever the host can reach.
The internal flag does what it says: Docker installs no forwarding for the bridge, so the workload cannot route to the LAN or the internet. What it does not do is take the host off the bridge. Docker still assigns the host a gateway address on that network, the same way it does for any bridge. A workload that declines to use the proxy can open a raw TCP connection to that gateway address and reach any service the host has bound to it, or to a wildcard address such as 0.0.0.0. No proxy sees the request, so no permission profile applies and nothing is logged.
This is the raw path the earlier gateway advisory set aside. It is published as GHSA-v7q7-97w6-v6mc, Moderate, CVSS 5.2, and fixed in v0.72.0.
Background
Two earlier advisories covered the proxy policy itself. GHSA-hfmx-2rf9-m35g found the egress proxy’s host-gateway deny list keyed on the wrong Docker network, so the address the workload actually routed through was never blocked. GHSA-2x65-h9w3-h7hc found the same deny set missing Podman’s host-access alias and address. Both were gaps in what the proxy denied. Both fixes made the deny set complete.
That left a question those fixes could not answer: what about a workload that never goes through the proxy at all? ToolHive injects HTTP_PROXY and HTTPS_PROXY so well-behaved clients route through the egress container, and the internal flag is meant to keep traffic from leaving the bridge any other way. The deny list only matters to traffic that reaches the proxy. A raw socket to the host does not.
The vulnerability
The workload’s internal network is created with internal: true. The intuition is that this seals the bridge: no gateway, no route off it. Docker’s behaviour is narrower. The internal flag blocks the forwarding rules that would let the bridge reach other networks, but the host still owns an address on the bridge, and the container’s default route points at it. That gateway address is the host.
So the container has a working route to a host-owned address even though the network is internal. Anything the host is listening on at that address, or on all interfaces, answers. The egress proxy is not in this path. The permission profile, whatever it is set to, is not consulted. The request leaves no entry in the proxy log.
A plain docker network create --internal shows the gateway that the flag is assumed to remove:
$ docker network create --internal thvpoc-internal
$ docker network inspect thvpoc-internal \
--format 'subnet= gw='
subnet=172.27.0.0/16 gw=172.27.0.1
The gateway 172.27.0.1 is a host address on an internal network.
Verifying it
The path was reproduced on native Linux with rootful Docker Engine. A host-local service was bound to all interfaces, and a container was attached only to the internal network, with the proxy environment variables cleared so the request could not be routed through the egress container by accident.
# host service on 0.0.0.0, returning the host's own name
$ docker run --rm --network host busybox httpd -f -p 18099 -h / &
# gateway of the internal network the workload sits on
$ GW=172.27.0.1
# workload on the internal network, no proxy, raw request to the host gateway
$ docker run --rm --network thvpoc-internal busybox \
wget -qO- http://$GW:18099/etc/hostname
kali
The workload read a file served by a process on the host, through the gateway of a network created with the internal flag, without touching the proxy.
The same result held against a real thv run workload in both default and isolated-network modes: the workload’s own toolhive-<name>-internal gateway answered a raw stdlib-socket request to the host service, while gateways of other networks were unreachable. The maintainers reproduced it as well and found an IPv6 variant, where the host stays reachable through the network’s IPv6 gateway. Docker Desktop did not reproduce the issue, because its bridge runs inside a virtual machine and the host on the developer’s machine is not on it.
Impact
A malicious or compromised MCP workload with network isolation enabled, on native Linux with rootful Docker Engine, can connect directly to host services listening on the internal network’s gateway or on a wildcard bind, outside the egress proxy and its logging. What that yields depends on the service and how it authenticates. A service that requires no authentication, an admin panel, an internal API, a database, is reachable and its responses are readable.
The advisory rates it CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N = 5.2, Moderate (CWE-284, CWE-693). The scope change reflects traffic crossing from the isolated workload into the host’s authority. This is not a container escape, and it gives no access to the internet, the LAN, or other Docker networks. The environmental severity is higher wherever a sensitive unauthenticated service happens to be bound where the workload can reach it.
The fix
v0.72.0 stops relying on the internal flag to keep the host off the bridge and removes the host’s address outright. On Docker, including Colima, ToolHive now creates the internal network with the bridge options gateway_mode_ipv4=isolated, gateway_mode_ipv6=isolated, and inhibit_ipv4=true, so the host holds no address on it in either address family. Containers on the network still reach each other, so the proxy and DNS sidecars are unaffected.
The behaviour depends on the Docker Engine version:
- Engine 28 and later: the host has no address on the bridge in either family.
- Engine 27: rejects the isolated gateway mode, so ToolHive retries with
inhibit_ipv4alone and logs a warning. The host has no IPv4 address there, but may stay reachable over IPv6. - Engine 26 and earlier: ignore the isolated gateway mode, and
inhibit_ipv4removes the host’s IPv4 address. ToolHive’s networks carry no IPv6 on these engines.
Docker cannot change these options on a network that already exists, so a workload whose internal network was created by an older ToolHive keeps the host reachable until it is recreated. ToolHive logs a warning each time it reuses such a network. Removing the workload and running it again recreates the network with the new options. The fix does not change Podman networks, and --allow-docker-gateway is unaffected, since that flag opens the host through the egress proxy rather than through the internal bridge.
For deployments that cannot update immediately, the advisory lists workarounds: bind host services to loopback rather than 0.0.0.0 or a bridge address, require authentication on host services, or add host firewall rules that reject traffic coming from ToolHive workload networks.
I verified the fix mechanism on native Linux with Docker Engine 28.5.2: created with the shipped options, the internal network has no host gateway in either family, the workload has no default route to any host address, and the host service is unreachable, while container-to-container connectivity is preserved. A pre-fix --internal control on the same host reproduced the original path.
Timeline
- 2026-09-20 reported through GitHub’s private vulnerability reporting, as part of the gateway isolation work.
- 2026-09-22 the maintainers confirmed the proxy-policy half as a separate advisory and kept the raw direct-path question open under this ID.
- 2026-12-01 fix released in v0.72.0 and the advisory published as GHSA-v7q7-97w6-v6mc, Moderate, CVSS 5.2.
Disclosure
Full advisory: GHSA-v7q7-97w6-v6mc, published 2026-12-01, Moderate, no CVE assigned. The fix is in v0.72.0. This is the direct-path companion to the two egress-proxy advisories linked above.