CVE-2026-39987

published 9 Apr 2026 · updated 24 Apr 2026

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

10.0CriticalCVSS 9.3EPSS 100%CISA KEV · due 7 May 20266 public exploits

Exploited in the wild, in CISA KEV since 23 Apr 2026 (due 7 May 2026), with 6 public exploits. No fixed version is recorded.

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.

Briefing

Written from the sources below · deepseek-v4.1-flash

marimo before 0.23.0 has a pre-auth RCE vulnerability because the /terminal/ws WebSocket endpoint skips authentication validation, letting unauthenticated attackers obtain a full PTY shell and run arbitrary commands. All marimo deployments prior to 0.23.0 that expose the terminal endpoint are affected.

Why it mattersCISA KEV-listed with confirmed exploitation, public exploit code, and 100% EPSS, so exposed instances are highly likely to be attacked.

ActionUpgrade to 0.23.0; if unable, restrict access to /terminal/ws and check logs for unauthenticated PTY connections.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
MarimoMarimo
marimo-team<0.23.0

Exploit evidence

6 public sources

github_poc
exploitdb
kev

Timeline

Every event on this vulnerability

Added to CISA KEVCVE-2026-39987·
marimo before 0.23.0 has a pre-auth RCE vulnerability because the /terminal/ws WebSocket endpoint skips authentication validation, letting unauthenticated attackers obtain a full PTY shell and run arbitrary commands. All marimo deployments prior to 0.23.0 that expose the terminal endpoint are affected.
7.0High
PublishedCVE-2026-39987·
marimo before 0.23.0 has a pre-auth RCE vulnerability because the /terminal/ws WebSocket endpoint skips authentication validation, letting unauthenticated attackers obtain a full PTY shell and run arbitrary commands. All marimo deployments prior to 0.23.0 that expose the terminal endpoint are affected.
7.0High

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-39987 severity on Zeptric[![CVE-2026-39987](https://zeptric.io/badge/cve/CVE-2026-39987.svg)](https://zeptric.io/cve/CVE-2026-39987)