# GHSA-G879-4J4F-6VJ7: Unauthenticated access to proxied tools in container mode

- Database: GitHub
- Severity: CVSS 9.2 (Critical)
- Published: 2026-07-09
- Modified: 2026-08-19

## Tracked as

- [CVE-2026-76092](https://cve.now/CVE-2026-76092.md): MCP Gateway: Unauthenticated access to proxied tools in container mode

## Affected versions

- github.com/docker/mcp-gateway (Go): from 0.25.0, fixed in 0.43.1

## Description

### Summary

When the gateway runs in container mode, the bearer-token authentication middleware is never installed, so the HTTP MCP endpoints are served with no authentication.

### Details

The auth token is only obtained/set for network transports when the process is **not** in a container (`run.go`, gated on `DOCKER_MCP_IN_CONTAINER`). `transport.go` installs the authentication middleware on `/sse` and `/mcp` only when the token is non-empty, so in container mode both handlers are unauthenticated. The listener binds to all interfaces (`0.0.0.0`), and the only remaining guard (`originSecurityHandler`) explicitly allows requests that carry no `Origin` header — which a non-browser client (curl/SDK) simply omits.

### Impact

Any host that can reach the published port (a LAN peer, or another container on the same Docker network) gets full, unauthenticated use of every proxied MCP server — including tools that act with the user's stored secrets and OAuth tokens.

### Preconditions

- Gateway running in container mode with an HTTP transport and the port reachable by an untrusted host.

### Workarounds

- Do not publish/expose the gateway port to untrusted networks; bind it to loopback or a trusted network only.
- Place the gateway behind an authenticating reverse proxy.

### References

- Fix PR: https://github.com/docker/mcp-gateway/pull/508

## References

- https://github.com/docker/mcp-gateway/security/advisories/GHSA-g879-4j4f-6vj7

Page: https://cve.now/GHSA-G879-4J4F-6VJ7

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
