Vulnerability
CVE-2026-39987
marimo Affected by Pre-Auth Remote Code Execution via Terminal WebSocket Authentication Bypass
Vulnerability details
- Score
- 9.3
- Severity
- critical
CVSS 4.0 · GitHub_M
Vector string
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NDescription
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.
CVE ProgramExploit source choices
15 sourcesMarimo Pre Authentication RCE
CVE-2026-39987 Exploitation Tool - Marimo < 0.23.0 Pre-Auth RCE (WebSocket)
PoC for CVE-2026-39987 — pre-auth RCE in Marimo via unauthenticated /terminal/ws WebSocket
CVE-2026-39987 — Marimo Pre-Authentication RCE
CVE-2026-39987: Marimo Python Notebook Pre-Auth RCE (CVSS 9.3). Python & Nmap NSE detection scripts. Missing authentication on /terminal/ws WebSocket endpoint gives attackers a full PTY shell without any credentials. Exploited in the wild within 10 hours of disclosure. Fixed in Marimo 0.23.0.
Security research and SOC investigation of CVE-2026-39987 using Docker, Nginx, Linux process monitoring, Splunk SIEM, and SPL detection rules.
marimo is a reactive Python notebook. Prior to 0.23.0, Marimo has a Pre-Auth RCE vulnerability
rootdirective-sec/cve-2026-39987-lab source repository
A proof-of-concept for CVE-2026-39987
CVE-2026-39987
CVE-2026-39987 - Marimo < 0.9.1 Pre-Auth RCE via unauthenticated /terminal/ws WebSocket endpoint
CVE-2026-39987 for marimo 0.20.4 PoC
CVE-2026-39987-PoC
CVE-2026-39987