CVE-2026-102610: fast-agent: `fast-agent serve` binds HTTP to 0.0.0.0 with no authentication by default; with --shell this is unauthenticated remote command execution
fast-agent serve listens on 0.0.0.0:8000 over HTTP with no authentication by default. Anyone who can reach the port can call the agent tool, and when the server runs with --shell, they can make the agent run OS commands. Affects fast-agent-mcp 0.7.20 and earlier. Fixed in 0.7.21.
Published Nov 9, 2026 · Analysis Nov 17, 2026
What an attacker can do
fast-agent serve exposes the agent over MCP. The transport defaults to HTTP, the host to 0.0.0.0 and the port to 8000. In agent_server.py, auth_provider is None unless FAST_AGENT_SERVE_OAUTH=huggingface is set. The server prints no warning.
Any client on the network can complete initialize and tools/list against /mcp with no Authorization header, and call the single agent tool. Without --shell, the attacker uses the operator's LLM account and the tools of any configured MCP servers. With --shell (-x, used in the README quickstart uvx fast-agent mcp@latest -x), the agent has a local execute tool that runs commands through create_subprocess_shell. The reporter sent one plain-language message to a gpt-4o-mini agent. It ran id and read /etc/passwd as root and returned the output. The permission prompt did not block this in non-interactive serve mode.
The result is remote command execution as the server user for anyone who can reach the port. The CVSS 6.4 rating reflects the serve and shell preconditions.
Who is affected
fast-agent-mcp 0.7.20 and earlier. The reporter verified 0.7.20 in a python:3.13-slim container. Exposure is highest when you run fast-agent serve with --shell or -x on a host reachable by others, or accept the default bind of 0.0.0.0.
pip show fast-agent-mcp
ss -ltnp | grep 8000A listener on 0.0.0.0:8000 from the fast-agent process means the port is open to the network.
fast-agent-mcp
- Ecosystem
- PyPI
- Affected
- <= 0.7.20
- Fixed in
- 0.7.21
- Check
pip show fast-agent-mcp
How to fix it
Upgrade to fast-agent-mcp 0.7.21:
pip install -U "fast-agent-mcp>=0.7.21"The advisory's remediation is to default the bind host to 127.0.0.1, require an explicit --host 0.0.0.0 for non-loopback use, and warn when binding a non-loopback interface without authentication. Until upgraded, pass --host 127.0.0.1, avoid --shell, firewall port 8000, or set FAST_AGENT_SERVE_OAUTH=huggingface for authentication.
How to tell if you were hit
Check for a listener on port 8000 bound to 0.0.0.0 by a fast-agent process. Review server logs for MCP initialize and tools/call requests to /mcp from addresses you do not know. Look for child shell processes of the fast-agent process, such as id, cat /etc/passwd or curl. Check LLM provider usage for spikes. Beam records agent shell commands, so shell commands run through the execute tool would show up there if Beam watches that host.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
fast-agent serve exposes the agent over MCP. By default it uses HTTP transport bound to 0.0.0.0 (all interfaces) on port 8000 with no authentication (auth=None) and prints no warning. Any host that can reach the port can call the exposed agent tool. When the server is started with --shell (which is -x, the flag used in the README quickstart uvx fast-agent mcp@latest -x), the agent has a local execute shell tool, so an unauthenticated remote client can drive the agent into running arbitrary OS commands — unauthenticated RCE.
Affected code
cli/commands/serve.py— transport defaults to HTTP;--hostdefaults to0.0.0.0; port 8000.mcp/server/agent_server.py—auth_provider = NoneunlessFAST_AGENT_SERVE_OAUTH=huggingface;run_async(transport="http", host=host, ...)withhostdefaulting to0.0.0.0.tools/local_shell_executor.py— the shell tool runs commands viacreate_subprocess_shell.
Verified (live, faithful — published 0.7.20 in Docker python:3.13-slim, stock unauthenticated client)
- Unauthenticated exposure (core defect): a client with no Authorization header completed
initializeandtools/list(->['agent']) againsthttp://HOST:8000/mcp. Model-independent. - Unauthenticated RCE with
--shell, demonstrated two ways: - Real production model (
gpt-4o-mini): a single plain-language message asking the agent to run a command via its shell tool -> the model autonomously calledexecuteand the command output (process identity showing it ran as root, the hostname, and the first lines of a sensitive system file) was returned to the unauthenticated caller. - Key-free deterministic (
passthroughmodel): the tool-call directive invoked the shell tool directly, same result. The server-side permission prompt did not block this in non-interactive serve mode.
Proof of concept
Environment: Docker python:3.13-slim, pip install fast-agent-mcp -> 0.7.20.
# server (real model + the documented shell flag; 0.0.0.0 is also the built-in default)
OPENAI_API_KEY=*** fast-agent serve --model gpt-4o-mini --shell --host 0.0.0.0 --port 8000
# -> "Uvicorn running on http://0.0.0.0:8000" (no auth, no warning)
# attacker: unauthenticated MCP HTTP client (NO Authorization header) to http://HOST:8000/mcp
# initialize() -> 200 OK (server fast-agent-MCP-Server 0.7.20)
# tools/list -> ['agent']
# tools/call name="agent" arguments={"message":
# "Using your execute/shell tool, run exactly this command and return its raw stdout: "
# "id; echo PWNED=$(hostname); cat /etc/passwd | head -2"}
#
# response returned to the UNAUTHENTICATED caller:
# uid=0(root) gid=0(root) groups=0(root)
# PWNED=<host>
# <first lines of /etc/passwd>Also reproduced key-free with --model passthrough and the message ***CALL_TOOL execute {"command":"id"} (passthrough invokes the tool deterministically). Full transcript + client scripts were sent by email.
Impact
An unauthenticated client that can reach the serve port controls the agent: with --shell this is remote command execution as the server user; without --shell it is unauthenticated use of the operator's LLM and any configured MCP servers' tools. The 0.0.0.0 default makes the server reachable beyond localhost as soon as it runs on a non-isolated host. Preconditions (serve + shell) are noted above and are why I defer the exact rating to you.
Remediation
- Default the bind host to
127.0.0.1; require an explicit--host 0.0.0.0opt-in for non-loopback. - Print a loud warning when binding a non-loopback interface without authentication.
Credited to novice-22.
Questions
- Is fast-agent serve safe without --shell?
It is still unauthenticated. Without --shell the attacker cannot run shell commands through the agent. They can use your LLM account and the tools of any MCP servers it has configured.
- Which version fixes CVE-2026-102610?
fast-agent-mcp 0.7.21. Version 0.7.20 and earlier are affected.
- Does the attacker need to be local?
No. The default bind is 0.0.0.0, so any host that can reach port 8000 can connect. No credentials are needed.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Other MCP servers and tools vulnerabilities
All Other MCP servers and tools entriesCVE-2026-77312
Flyto2 Core: Arbitrary file write via unguarded data.*/file.* modules (incomplete fix of CVE-2026-67429)
critical10.0Nov 20, 2026CVE-2026-77318
Jupyter MCP Server: Unauthenticated management routes can hijack the Jupyter backend in standalone HTTP mode
high7.3Nov 20, 2026CVE-2026-77359
Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routes
critical9.3Nov 20, 2026CVE-2026-130007
k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution
high7.9Nov 19, 2026CVE-2026-130008
sqlite-mcp: Read-only mode bypass via statement chaining and SQL injection in describe_table
high8.2Nov 19, 2026CVE-2026-62964
Gortex: Arbitrary file write / repo-confinement escape in `write_file` / `edit_file` / `move_inline` MCP tools → code execution
high7.8Nov 19, 2026
