mcp-cve-project

CVE-2026-39987 | Marimo pre-auth RCE (MCP-adjacent AI notebook exposure) | Critical |

CVE Information

Field Value
CVE / NVD CVE-2026-39987
EPSS score 0.956450000 (FIRST EPSS, 2026-06-30)
Date (index) 2026-04-11
Affected product (index) Marimo Python notebook server
GHSA ID GHSA-2679-6mx9-h9xc
OWASP MCP Top 10 (2025) MCP05 — Command Injection & Execution
Published / disclosed 2026-04-08 / 2026-04-11 analysis
Ecosystem Python
Component Marimo server /terminal/ws WebSocket endpoint
CVSS score Critical — 9.3 CVSS v4.0 (GHSA / public analysis)
CWE CWE-306
Affected versions Marimo before 0.23.0
Fixed versions 0.23.0
Fix status Patched
Exploit status Public advisory; active exploitation reported
Notes MCP-adjacent: the CVE is not an MCP protocol bug, but Marimo supports agent/MCP workflows and exposed notebook servers can become privileged tool execution surfaces. Added during the 2026-05-30 review.

CVE Breakdown


What is the vulnerability?

CVE-2026-39987 is a pre-authentication remote code execution vulnerability in Marimo. Public analysis reports that the /terminal/ws WebSocket endpoint did not enforce authentication consistently, allowing unauthenticated callers to obtain a PTY shell as the user running Marimo.

Attack prerequisites / exposure

The Marimo server must be reachable over the network. Risk is higher where notebook servers are exposed in shared lab, cloud, CI, or AI-agent environments.

CVE is because of what bug?

Authentication enforcement was inconsistent across WebSocket endpoints, leaving the terminal endpoint reachable without required auth checks.

MCP-specific impact / why it matters

This is MCP-adjacent rather than MCP-specific. Marimo can be used in agentic workflows, and notebook servers with MCP/agent integrations often have access to files, credentials, and runtime environments. A pre-auth shell on such a server can compromise connected MCP or AI tooling.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory. Do not paste weaponized payloads.

Fix / Remediation

Upgrade Marimo to 0.23.0 or later. Do not expose notebook or agent servers to untrusted networks without strong authentication.

Upstream fix (open source)

Workarounds / mitigations

Exploit / PoC

Public reporting indicates rapid weaponization; do not host exploit payloads in this repository.

Detection / verification

Patch

Upgrade Marimo to 0.23.0 or later.