Join our Experts on June 24 as they explain how to Detect, Divert, and Deceive AI-Assisted Threats

CVE-2026-39987

CVE-2026-39987 allows unauthenticated attackers to execute arbitrary commands on vulnerable Marimo instances through an exposed WebSocket endpoint.

CVSS Gauge
CVSS Needle

Summary

CVE-2026-39987 is a critical Marimo vulnerability that allows unauthenticated attackers to gain shell access and execute arbitrary commands through the exposed /terminal/ws endpoint. The flaw affects versions before 0.23.0, has been actively exploited, and can lead to credential theft, unauthorized access, and system compromise. Upgrading to version 0.23.0 or later fixes the issue.

Urgent Actions Required

Which Systems Are Vulnerable to CVE-2026-39987?

Technical Overview 

How Does the CVE-2026-39987 Exploit Work?

The attack typically follows these steps:

CVE-2026-39987

What Causes CVE-2026-39987?

Vulnerability Root Cause:   

The vulnerability is caused by a missing authentication check in Marimo’s /terminal/ws WebSocket endpoint. While other WebSocket endpoints enforce authentication before accepting connections, the terminal endpoint does not validate user credentials. Instead, it only verifies operational requirements such as running mode and platform support. As a result, unauthenticated users can establish a terminal session and execute commands on the affected system.

How Can You Mitigate CVE-2026-39987?

If immediate patching is delayed or not possible: 

  • Restrict access to Marimo instances using firewall rules and allow connections only from trusted networks or IP addresses.
  • Block or limit access to the /terminal/ws endpoint through network controls.
  • Place Marimo behind an authenticated reverse proxy to add an additional access control layer.
  • Disable terminal functionality if it is not required in the environment.
  • Monitor logs for unauthorized or unusual WebSocket connections to the /terminal/ws endpoint.

Which Assets and Systems Are at Risk?

Will Patching CVE-2026-39987 Cause Downtime?

Patch application impact: Low. Updating to Marimo 0.23.0 or later is the recommended fix. Brief service interruption may occur during the update process.

Mitigation (if immediate patching is not possible): Restrict access to Marimo instances, block access to /terminal/ws, or place Marimo behind an authenticated reverse proxy until the update can be applied.

How Can You Detect CVE-2026-39987 Exploitation?

Exploitation Signatures: 

Monitor for WebSocket connections to the /terminal/ws endpoint, especially from external or unauthorized IP addresses.

MITRE ATT&CK Mapping:

Indicators of Compromise (IOCs/IOAs):

Behavioral Indicators:

Alerting Strategy:

Remediation & Response

Compliance & Governance Notes

See How Fidelis Sandbox Detects Advanced Malware in Real Time

      • Real-time malware analysis in cloud or on-premises environments
      • Key features and capabilities of Fidelis Sandbox
      • Technical specifications and suspicious file submission methods
Download the Data Sheet

CVSS Breakdown Table 

MetricValue Description
Base Score9.8Critical severity vulnerability
Attack VectorNetwork   Exploitable remotely through the vulnerable WebSocket endpoint
Attack ComplexityLowExploitation does not require special conditions
Privileges RequiredNoneNo authentication is required
User Interaction NoneNo user involvement is needed
Scope Unchanged Impact is limited to the vulnerable component
Confidentiality Impact HighAttackers can access sensitive files, credentials, and environment data
Integrity Impact HighArbitrary command execution can modify system data and configurations
Availability ImpactHighCommand execution may disrupt or impact system operations

Related Readings

One Platform for All Adversaries

See Fidelis in action. Learn how our fast and scalable platforms provide full visibility, deep insights, and rapid response to help security teams across the World protect, detect, respond, and neutralize advanced cyber adversaries.