On April 8, 2026, a critical remote code execution (RCE) vulnerability in Marimo, an open-source reactive notebook for Python, was publicly disclosed. The vulnerability, tracked as CVE-2026-39987, carries a CVSS score of 9.3 and allows unauthenticated attackers to gain full system access. In a stark demonstration of the speed of modern attackers, security researchers at Sysdig detected the first in-the-wild exploitation of this flaw just 9 hours and 41 minutes after the advisory was published. The attacker successfully developed a working exploit solely from the technical description in the advisory, as no public proof-of-concept was available. This incident serves as a critical reminder for developers and security teams to patch vulnerabilities with extreme urgency.
The vulnerability exists in the /terminal/ws WebSocket endpoint of the Marimo application. This endpoint was intended to provide a terminal interface for authenticated users but lacked any authentication checks. As a result, any unauthenticated attacker could connect to this WebSocket and gain a full interactive PTY (pseudo-terminal) shell on the server, with the privileges of the user running the Marimo notebook.
The vulnerability was exploited in the wild in less than 10 hours. The Sysdig honeypot that detected the attack recorded the following sequence:
/terminal/ws endpoint.ls -la and pwd to understand the file system and their current location..env file and searched for SSH keys (.ssh directory), completing the entire credential theft operation in under three minutes.This demonstrates a skilled attacker capable of rapid weaponization of a newly disclosed vulnerability without needing a pre-built exploit script.
A successful exploit gives an attacker an interactive shell on the server running Marimo. This allows them to:
.env), SSH keys, and cloud provider credentials, enabling further lateral movement into cloud environments or other systems.The compromise of a data science or development environment can be particularly damaging, leading to intellectual property theft and a deep compromise of an organization's infrastructure.
/terminal/wspython/bin/sh, bash, or other unexpected commands./terminal/ws URL. Any successful connection from an unauthorized source should be treated as a compromise./terminal/ws path.D3FEND Reference: Detection focuses on D3-WSAA - Web Session Activity Analysis to spot the malicious WebSocket connection and D3-PA - Process Analysis to see the resulting shell.
D3FEND Reference: The only true fix is D3-SU - Software Update. As a preventative measure, D3-NI - Network Isolation ensures development tools like Marimo are not exposed to attackers in the first place.
New reports confirm continued active exploitation of Marimo RCE (CVE-2026-39987) with updated threat intelligence.
Immediately update Marimo to version 0.23.0 or later to eliminate the vulnerability.
Mapped D3FEND Techniques:
Do not expose development tools like Marimo directly to the internet. Restrict access to internal networks or trusted IPs only.
Mapped D3FEND Techniques:
Run development tools in containerized or isolated environments to limit the blast radius of a potential compromise.
The exploitation of CVE-2026-39987 within 10 hours of disclosure underscores that the only truly effective mitigation is immediate patching. Organizations using Marimo must treat the update to version 0.23.0 as an emergency change. The speed of weaponization means that traditional weekly or monthly patch cycles are no longer adequate for critical, internet-facing vulnerabilities. An automated system for identifying vulnerable software versions and deploying patches is essential. In this specific case, any Marimo instance running a version up to 0.20.4 must be updated without delay. This is a direct and complete countermeasure to the threat.
This incident is a textbook case for the importance of Network Isolation for development tools. Marimo notebooks, like Jupyter or other interactive coding environments, should never be directly exposed to the public internet. They are not designed with the same security hardening as production web servers. The best practice is to run these tools on a local machine or within a private, isolated network. Any remote access should be brokered through a secure, authenticated gateway like a VPN or an authenticating proxy (e.g., Google's IAP). By implementing this 'zero-exposure' policy for development tools, organizations can ensure that even if a critical vulnerability like CVE-2026-39987 is disclosed, their instances are not reachable by attackers, rendering the vulnerability non-exploitable from the outside.
The Marimo RCE vulnerability (CVE-2026-39987) is publicly disclosed.
Sysdig researchers observe the first in-the-wild exploitation attempt, just 9 hours and 41 minutes after disclosure.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.