{"answers":{"affected":"3 open source packages ship an affected version, including marimo. It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2026-39987 in the wild since at least 23 Apr 2026.","fix":"Upgrade marimo to 0.23.0 or later. US federal agencies must fix it by 7 May 2026.","what":"CVE-2026-39987 is a critical authentication bypass vulnerability in marimo-team marimo, published on 9 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-39987 and fix it if it is affected.\n\nWhat it is: CVE-2026-39987 is a critical authentication bypass vulnerability in marimo-team marimo, published on 9 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2026-39987 in the wild since at least 23 Apr 2026.\n\nAffected packages and fixed versions:\n- marimo (PyPI): affected all versions; fixed in 0.23.0\n- marimo (PyPI): affected all versions; fixed in 0.23.0\n- marimo (PyPI): affected all versions; fixed in 0.23.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-39987/ (Markdown: https://insights.sbomify.com/CVE-2026-39987/index.md)","id":"CVE-2026-39987","markdown":"https://insights.sbomify.com/CVE-2026-39987/index.md","name":"CVE-2026-39987","record":{"aliases":["GHSA-2679-6mx9-h9xc","PYSEC-2026-407"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python notebook","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary system commands via an unsecured terminal WebSocket endpoint in marimo notebooks.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"marimo","vendor":"coreweave"}],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":1,"first_seen":"2026-04-12","github_poc":29,"max_poc_stars":9,"metasploit":0,"nuclei":1,"refs":[{"date":"2026-09-08T19:44:20Z","kind":"github_poc","ref":"https://github.com/Th3Purge/CVE-2026-39987","stars":9,"title":"Marimo Pre Authentication RCE"},{"date":"2026-05-24T18:00:33Z","kind":"github_poc","ref":"https://github.com/M3PH1569/CVE-2026-39987-POC","stars":5,"title":"CVE-2026-39987 Exploitation Tool - Marimo \u003c 0.23.0 Pre-Auth RCE (WebSocket)"},{"date":"2026-04-15T08:09:54Z","kind":"github_poc","ref":"https://github.com/keraattin/CVE-2026-39987","stars":1,"title":"CVE-2026-39987: Marimo Python Notebook Pre-Auth RCE (CVSS 9.3). Python \u0026 Nmap NSE detection scripts. Missing authentication on /terminal/ws WebSocket endpoint gives attackers a full PTY shell without any credentials. Exploited in the wild within 10 hours of disclosure. Fixed in Marimo 0.23.0."},{"date":"2026-04-18T07:46:43Z","kind":"github_poc","ref":"https://github.com/Nxploited/CVE-2026-39987","stars":1,"title":"marimo is a reactive Python notebook. Prior to 0.23.0, Marimo has a Pre-Auth RCE vulnerability"},{"date":"2026-04-25T16:50:34Z","kind":"github_poc","ref":"https://github.com/h3raklez/CVE-2026-39987","stars":1,"title":"Marimo Pre-Auth RCE"},{"date":"2026-05-04T10:54:32Z","kind":"github_poc","ref":"https://github.com/rootdirective-sec/CVE-2026-39987-Lab","stars":1,"title":null},{"date":"2026-08-03T06:32:49Z","kind":"github_poc","ref":"https://github.com/Wind010/CVE-2026-39987_PoC","stars":1,"title":"A proof-of-concept for CVE-2026-39987"},{"date":"2026-09-01T21:40:03Z","kind":"github_poc","ref":"https://github.com/Ghxstsec/CVE-2026-39987","stars":1,"title":null}],"tier":"exploited"},"has_fix":true,"headline":"Marimo Remote Code Execution","id":"CVE-2026-39987","indexable":true,"kev":{"dateAdded":"2026-04-23","dueDate":"2026-05-07","knownRansomwareCampaignUse":"Unknown","product":"Marimo","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","vendorProject":"Marimo","vulnerabilityName":"Marimo Remote Code Execution Vulnerability"},"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"SSRF in QNAP Download Station","id":"CVE-2026-39989"},"packages":[{"ecosystem":"PyPI","fixed":["0.23.0"],"introduced":["0"],"last_affected":[],"package":"marimo","purl":null,"source":"GHSA-2679-6mx9-h9xc"},{"ecosystem":"PyPI","fixed":["0.23.0"],"introduced":["0"],"last_affected":[],"package":"marimo","purl":"pkg:pypi/marimo","source":"GHSA-2679-6mx9-h9xc"},{"ecosystem":"PyPI","fixed":["0.23.0"],"introduced":["0"],"last_affected":[],"package":"marimo","purl":"pkg:pypi/marimo","source":"PYSEC-2026-407"}],"prev":{"headline":"LORIS has an open redirect field on login","id":"CVE-2026-39985"},"products":["marimo"],"published":"2026-04-09","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-24","vendors":["marimo-team"]},"summary":"Unauthenticated attackers can execute arbitrary system commands via an unsecured terminal WebSocket endpoint in marimo notebooks.","url":"https://insights.sbomify.com/CVE-2026-39987/"}