CVE-2026-39987 is a critical pre-auth RCE in Marimo notebooks via the terminal WebSocket endpoint. Update to version 0.23.0 immediately.
| Product | Version Start | Version End (excl.) | Status |
|---|---|---|---|
| marimo | * | 0.23.0 | vulnerable |
Update your Marimo installation to version 0.23.0 or later, which introduces the necessary authentication validation for the terminal WebSocket endpoint.
Identify all instances of Marimo running versions prior to 0.23.0 and ensure they are upgraded immediately to mitigate the risk of unauthorized shell access.
Implement network-level access controls, such as firewalls or VPNs, to ensure that Marimo instances are not exposed to the public internet, specifically blocking unauthorized access to the /terminal/ws endpoint.
Review application logs for unusual connection requests to the /terminal/ws endpoint, especially those originating from unexpected IP addresses or occurring without corresponding authenticated sessions.
Detection should focus on identifying unauthorized WebSocket upgrades to the /terminal/ws path. Monitor web server and application logs for HTTP 101 Switching Protocols responses to this specific endpoint from unauthenticated or external IP addresses. Additionally, look for unusual child processes spawned by the Marimo application, such as unexpected shell activity (e.g., /bin/sh, /bin/bash) or network callouts that deviate from normal data science workflows.
Experience superior visibility and a simpler approach to cyber risk management