A critical remote code execution vulnerability in Marimo, a popular open-source Python notebook used for data science and AI workflows, was exploited in the wild just 9 hours and 41 minutes after public disclosure. The flaw, tracked as CVE-2026-39987 with a CVSS score of 9.3, allows unauthenticated attackers to gain full shell access through an unprotected WebSocket endpoint.

The vulnerability exists because Marimo's terminal WebSocket endpoint (/terminal/ws) completely skips authentication checks, unlike other endpoints that properly validate credentials. An attacker can connect directly and execute arbitrary system commands without any login. Sysdig researchers observed a threat actor on a honeypot system performing manual reconnaissance, searching for SSH keys, harvesting .env files, and reading sensitive system data — all within minutes of initial access.

All Marimo versions through 0.20.4 are affected, and users are urged to update immediately to version 0.23.0, which patches the flaw. The rapid exploitation timeline highlights the shrinking window between vulnerability disclosure and active attacks, underscoring the need for automated patching in data science environments.