CVE Tools

CVE-2026-39987

marimo Affected by Pre-Auth Remote Code Execution via Terminal WebSocket Authentication Bypass

Published: Apr 9, 2026Updated: Apr 23, 2026 Sources: CVE List NVD BDUCWE-306

Description

marimo is a reactive Python notebook. Prior to 0.23.0, Marimo has a Pre-Auth RCE vulnerability. The terminal WebSocket endpoint /terminal/ws lacks authentication validation, allowing an unauthenticated attacker to obtain a full PTY shell and execute arbitrary system commands. Unlike other WebSocket endpoints (e.g., /ws) that correctly call validate_auth() for authentication, the /terminal/ws endpoint only checks the running mode and platform support before accepting connections, completely skipping authentication verification. This vulnerability is fixed in 0.23.0.

In plain language

AI Act now

Marimo versions before 0.23.0 can let anyone on the network log in without credentials and run commands on the server—this is an immediate, high-risk issue if you use Marimo’s terminal feature.

Executive summary

CVE-2026-39987 is a pre-auth remote code execution in Marimo where the terminal WebSocket endpoint bypasses authentication checks, allowing unauthenticated attackers to establish a terminal session and execute arbitrary system commands.

If affected, business impact
Full server takeoverMalware installation and persistenceCustomer/workspace data theftService downtime or destruction

What to do now

  1. Check whether your Marimo deployment is running a version earlier than 0.23.0 and whether the terminal functionality is enabled.
  2. Upgrade Marimo to 0.23.0 (or a later release) to remove the unauthenticated terminal WebSocket command-execution path.
  3. If you cannot upgrade right away, temporarily disable the terminal feature or block access to the terminal WebSocket endpoint from untrusted networks (e.g., the public internet), then plan the upgrade immediately.
  4. After updating, review server logs and alerts for signs of command execution attempts or unusual outbound connections from the Marimo host.
Patch / advisory Usually a quick update

CVSS Vector Breakdown

AV:NAC:LPR:NUI:NS:UC:HI:HA:H
Exploitability
AV:NAttack Vector
Network
AC:LAttack Complexity
Low
PR:NPrivileges Required
None
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:HConfidentiality
High
I:HIntegrity
High
A:HAvailability
High

Weaknesses

Affected Products

Exploitability

CISA Known Exploited Vulnerability
Added to KEV:Apr 23, 2026
Remediation due:May 7, 2026

Required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Official Patch Available
Workaround Available

Attack Graph

Products CVE Techniques Tactics

Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/ + scroll to zoom, or go fullscreen.

MITRE ATT&CK

2 techniques
Initial Access
View detailed technique mapping

References

and 6 more references View all →
11
See all →

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2026-39987 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows

We use analytics cookies to see which pages and articles actually help people. Decline and none of them run — the site works the same. What we store