CVE-2026-39987 is a critical pre-authentication remote code execution vulnerability in Marimo, a reactive Python notebook. The NVD record says a terminal WebSocket interface fails to validate authentication before accepting a connection.An unauthenticated remote attacker can obtain an interactive system shell and execute arbitrary commands. NVD gives the flaw a CVSS 3.1 score of 9.8, while the GitHub CNA gives it a CVSS 4.0 score of 9.3. Apply the fixed version through the organization’s patch management process.
What it allows
How Does CVE-2026-39987 Enable Remote Code Execution?
The vulnerable terminal interface checks the operating mode and platform support, but skips the authentication control used by other WebSocket interfaces. This missing check exposes terminal access before a user proves their identity.
A remote attacker needs no account and no user interaction according to both CVSS vectors. Successful exploitation provides a system shell, enabling arbitrary commands with the privileges of the Marimo process.
Who is affected
Marimo versions earlier than 0.23.0 are affected. The NVD configuration lists 0.23.0 as the exclusive upper boundary for vulnerable releases.
Version 0.23.0 contains the fix. CISA added CVE-2026-39987 to its Known Exploited Vulnerabilities catalog on April 23, 2026, and set a May 7 remediation deadline for federal agencies.
What to do
-
Upgrade Marimo to 0.23.0 or later
Prioritize internet-reachable and shared notebook services. Confirm the running version after deployment rather than relying only on package manifests.
-
Restrict network access until the upgrade is complete
Brandefense recommends limiting Marimo access to trusted users and networks where immediate upgrading is not possible. This is temporary risk reduction, not a replacement for the fixed release.
-
Review exposed instances for unexpected command execution
Brandefense recommends examining process, authentication, and network logs for unexplained terminal sessions or child processes. Preserve relevant evidence and investigate anomalies before returning an exposed service to operation.
-
Treat CISA KEV status as an urgent patch signal
CISA lists the vulnerability as known to be exploited. Organizations should inventory Marimo deployments and accelerate remediation of any release earlier than 0.23.0.
What Brandefense can do
- Watch your stack for exploited flaws
Name the vendors and products you run, and Brandefense alerts you when a CVE in them is exploited.
- See CVE-2026-39987 in Brandefense Atlas
The Atlas record of CVE-2026-39987: severity, exploitation status and the sources behind it.
- Vulnerability intelligence platform
Brandefense Vulnerability Intelligence follows which vulnerabilities attackers are using, so your team can patch what is under attack first.
Frequently Asked Questions
What is CVE-2026-39987?
It is a missing authentication flaw in Marimo's terminal WebSocket functionality. It can give an unauthenticated remote attacker a system shell and arbitrary command execution.
Which Marimo versions are affected?
Marimo versions earlier than 0.23.0 are affected. The NVD record identifies version 0.23.0 as the fixed boundary.
Is CVE-2026-39987 actively exploited?
Yes. CISA added CVE-2026-39987 to its Known Exploited Vulnerabilities catalog on April 23, 2026.
What should defenders do first?
Upgrade Marimo to version 0.23.0 or later. Prioritize internet-reachable and shared instances, then review exposed systems for unexpected command execution.