# CVE-2026-39987: marimo Affected by Pre-Auth Remote Code Execution via Terminal WebSocket Authentication Bypass

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: yes. In CISA's catalogue since 2026-04-23. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Likelihood of exploitation in the next 30 days (EPSS): 99.8%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-04-08T21:50:58.000Z
- Modified: 2026-07-01T20:22:56.993Z
- Also known as: GHSA-2679-6mx9-h9xc, PYSEC-2026-407
- Weaknesses: CWE-306
- SSVC (CISA-ADP): exploitation active, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- marimo-team marimo: < 0.23.0
- marimo (PyPI): before 0.23.0
- coreweave marimo: before 0.23.0
- Marimo Marimo: no versions given

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/marimo-team/marimo/security/advisories/GHSA-2679-6mx9-h9xc> (exploit, kev, mitigation, vendor-advisory, web)
- <https://www.sysdig.com/blog/marimo-oss-python-notebook-rce-from-disclosure-to-exploitation-in-under-10-hours> (exploit, third-party-advisory, web)
- <https://github.com/marimo-team/marimo/pull/9098> (issue-tracking, patch, web)
- <https://github.com/marimo-team/marimo/commit/c24d4806398f30be6b12acd6c60d1d7c68cfd12a> (patch, web)
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-39987> (government-resource, us-government-resource, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39987> (advisory, kev)
- <https://github.com/marimo-team/marimo> (package)
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-39987> (web)
- <https://pypi.org/project/marimo> (package)
- <https://github.com/advisories/GHSA-2679-6mx9-h9xc> (advisory)

## Sources

- CVE List: [CVE-2026-39987](https://www.cve.org/CVERecord?id=CVE-2026-39987), CVE Terms of Use, modified 2026-04-24
- GitHub Advisory Database: [GHSA-2679-6mx9-h9xc](https://github.com/advisories/GHSA-2679-6mx9-h9xc), CC-BY-4.0, modified 2026-06-29
- NVD: [CVE-2026-39987](https://nvd.nist.gov/vuln/detail/CVE-2026-39987), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-407](https://osv.dev/vulnerability/PYSEC-2026-407), CC-BY-4.0, modified 2026-07-01
- CISA KEV: [CVE-2026-39987](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-39987), CC0-1.0, modified 2026-04-23

---

Page: https://cve.day/CVE-2026-39987 · Whole record: https://cve.day/CVE-2026-39987.json · Rebuilt by cve.day 2026-11-25T22:59:18.395Z
