CVE-2026-39987: Unauthenticated Terminal WebSocket RCE in Marimo
- Vendor
- CoreWeave
CVE-2026-39987 is a pre-authentication remote code execution vulnerability in Marimo, a reactive Python notebook platform, affecting versions before 0.23.0. The integrated terminal WebSocket handler checks edit mode and platform pseudoterminal support but omits the authentication validation enforced by other WebSocket handlers. An unauthenticated remote client can establish a WebSocket connection and obtain an interactive pseudoterminal shell with the privileges of the Marimo process. Exploitation requires no user interaction. The vulnerability has been exploited in the wild and was fixed in version 0.23.0.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the confidentiality, integrity, and availability of resources accessible to the Marimo process. Attackers can execute arbitrary commands, access or modify notebooks and datasets, steal credentials, install persistence, and disrupt workloads. If Marimo runs as root, the shell inherits root privileges within its execution environment; container escape is not inherent to this vulnerability. Observed intrusions included theft of AWS credentials, retrieval of an SSH private key from AWS Secrets Manager, and lateral movement to a bastion host. Downstream impact depends on available credentials, IAM permissions, and network reachability.
Mitigation
If you can’t patch tonight, do this now.
Until upgraded, disable the integrated terminal or block access to its WebSocket endpoint. Restrict edit-mode deployments to private networks, VPNs, authenticated proxies, or explicit allowlists, ensuring controls cover WebSocket upgrades. Run Marimo with non-root privileges and minimal container capabilities, restrict notebook IAM permissions and access to unrelated secrets, and limit outbound connectivity. Monitor unexpected terminal connections, spawned shells, abnormal outbound traffic, unusual AWS Secrets Manager requests, and new bastion-host SSH authentications.
Remediation
Patch, then assume compromise.
Upgrade Marimo to version 0.23.0 or later, which adds authentication validation to the terminal WebSocket handler. For potentially compromised deployments, investigate command execution and credential access, remove unauthorized persistence, and rotate exposed cloud credentials, SSH keys, API tokens, and other secrets. Patching does not remove existing attacker access.
Exploits
26 exploits validated by Mallory's analysis. Hidden: 10 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries. Showing the 25 most capable, earliest first.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-39987 exploited in the wild?
- Yes. As of Nov 17, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Apr 23, 2026.
- Is there a public exploit for CVE-2026-39987?
- Yes. Mallory tracks 26 public exploits or proofs of concept for CVE-2026-39987, the earliest disclosed Apr 13, 2026.
- Is there a patch for CVE-2026-39987?
- Upgrade Marimo to version 0.23.0 or later, which adds authentication validation to the terminal WebSocket handler. For potentially compromised deployments, investigate command execution and credential access, remove unauthorized persistence, and rotate exposed cloud credentials, SSH keys, API tokens, and other secrets.
- What products are affected by CVE-2026-39987?
- CoreWeave Marimo.
- How severe is CVE-2026-39987?
- CVE-2026-39987 has a CVSS v4 score of 9.3 (Critical) and an EPSS score of 45.0% (99th percentile) as of Nov 17, 2026.
Recent activity
208 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.