Skip to content
Access control Write-up Beginner

A WebSocket, a Shell, and a Critical CVE: Discovering CVE-2026–39987

Affected versions of Marimo exposed a terminal WebSocket endpoint that did not perform the authentication checks used by other endpoints, so anyone who could reach the service could obtain an interactive shell. An attacker could connect without credentials and execute arbitrary commands on the host.

julichaan Follow

Published on medium.com

Vulnerability

julichaan, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

This write-up is short, so there is no separate rewrite of it: it is quickest to read it in full on its author's site. Read the write-up.

How it worked

Root cause

Likely the terminal WebSocket handler was written without the session authentication check that other WebSocket endpoints applied, so it accepted unauthenticated connections and created a PTY.

Impact

An unauthenticated attacker could execute arbitrary commands, read sensitive files, steal credentials, move laterally and fully compromise the notebook environment; the text says the bug was added to CISA's Known Exploited Vulnerabilities catalog, indicating active exploitation.

What the attacker needed

Network access to the Marimo service; no credentials needed

The fix

The issue was fixed in Marimo 0.23.0, and defenders should also avoid exposing notebook services directly to the internet and monitor WebSocket connections to sensitive endpoints.

How it was found

  1. Enumerate the application's routes and WebSocket connections and notice the terminal endpoint.
  2. Connect to the terminal WebSocket endpoint without authenticating.
  3. The server creates a PTY and returns an interactive shell.
  4. Run arbitrary commands on the host through that shell.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

This write-up is short, so there is no separate rewrite of it: it is quickest to read it in full on its author's site. Read the write-up.

A WebSocket is a two-way connection between a browser and a server that stays open, often used for live features like terminals. Here the server had a terminal connection that anyone could open without logging in, so a stranger could type commands on the machine as if sitting at its keyboard.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by julichaan

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.