{"id":"CVE-2026-39987","aliases":["GHSA-2679-6mx9-h9xc","PYSEC-2026-407"],"url":"https://o3.security/vulnerability/CVE-2026-39987","summary":"marimo Affected by Pre-Auth Remote Code Execution via Terminal WebSocket Authentication Bypass","details":"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.","published":"2026-04-09T17:16:55.639Z","modified":"2026-08-12T03:51:43.412076948Z","cvss":null,"epss":{"score":0.98945,"percentile":0.99926,"asOf":"2026-09-08"},"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"PyPI","name":"marimo","fixedVersion":"0.23.0"}],"fix":{"url":"https://github.com/marimo-team/marimo/commit/c24d4806398f30be6b12acd6c60d1d7c68cfd12a","label":"marimo-team/marimo@c24d480"},"references":[{"type":"WEB","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-39987"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39987.json"},{"type":"ADVISORY","url":"https://github.com/marimo-team/marimo/security/advisories/GHSA-2679-6mx9-h9xc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39987"},{"type":"ADVISORY","url":"https://www.sysdig.com/blog/marimo-oss-python-notebook-rce-from-disclosure-to-exploitation-in-under-10-hours"},{"type":"FIX","url":"https://github.com/marimo-team/marimo/commit/c24d4806398f30be6b12acd6c60d1d7c68cfd12a"},{"type":"FIX","url":"https://github.com/marimo-team/marimo/pull/9098"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:43.412076948Z"}}