Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-39987

CRITICAL 9.3ExploitedPoCEPSS 99%

marimo Affected by Pre-Auth Remote Code Execution via Terminal WebSocket Authentication Bypass

Also known as EDB-52673, GHSA-2679-6mx9-h9xc, PYSEC-2026-407

Mitigation

  • Upgrade marimo to 0.23.0 or later.

Who should check

  • Projects that depend on PyPI package marimo (< 0.23.0)
  • Anyone running marimo-team marimo < 0.23.0

Vulnerability facts

Affected
marimo < 0.23.0
Fixed in
0.23.0
Exploited in the wild
Yes: in CISA KEV since 2026-04-23; federal due date 2026-05-07
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Remote, no login needed
CVSS
9.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
44.99% chance of exploitation in 30 days (percentile 99, 2026-11-26)
CWE
CWE-306
Published
Modified

Description

marimo is a reactive Python notebook. Prior to 0.23.0, Marimo has a Pre-Auth RCE vulnerability. The terminal WebSocket endpoint /terminal/ws lacks authentication validation, allowing an unauthenticated attacker to obtain a full PTY shell and execute arbitrary system commands. Unlike other WebSocket endpoints (e.g., /ws) that correctly call validate_auth() for authentication, the /terminal/ws endpoint only checks the running mode and platform support before accepting connections, completely skipping authentication verification. This vulnerability is fixed in 0.23.0.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI marimo< 0.23.00.23.0osv
marimo-team marimo< 0.23.0—cvelist

Timeline

  1. 2026-04-08 Published
  2. 2026-04-23 Added to CISA KEV (exploited in the wild)
  3. 2026-05-07 CISA remediation due date for US federal agencies
  4. 2026-09-02 Last modified

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-39987. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-39987.md
Affected: marimo < 0.23.0
Fixed in: 0.23.0

Steps:
1. Search this machine and project for marimo (PyPI), marimo-team marimo: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-39987 being exploited?

Yes. CISA lists CVE-2026-39987 in its Known Exploited Vulnerabilities catalog since 2026-04-23, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 44.99% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-39987?

Critical: CVSS 9.3 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-39987?

marimo < 0.23.0.

Is there a fix for CVE-2026-39987?

Yes. Fixed in 0.23.0. Upgrade marimo to 0.23.0 or later.

How do I check if I'm affected by CVE-2026-39987?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors