Marimo-team marimo
marimo Affected by Pre-Auth Remote Code Execution via Terminal WebSocket Authentication Bypass
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.23.0
Fixed in 0.23.0
Mitigation
Upgrade marimo to 0.23.0 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 3.2 days after publication; added to CISA KEV 14 days after publication. First PoC: 0xBlackash/CVE-2026-39987 (created 12 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.29 PoCs · 2 pending · 2 informational · 2 suspicious or fake
PoCs 29
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| 0xBlackash/CVE-2026-39987 | 12 Apr 2026 +3.2 d | backfilled | 0 | PoC |
| 0xredash/CVE-2026-39987 | 12 Apr 2026 +3.2 d | backfilled | 0 | PoC |
| ashrafzaryouh/CVE-2026-39987 | 12 Apr 2026 +3.2 d | backfilled | 0 | PoC |
| fevar54/marimo_CVE-2026-39987_RCE_PoC | 13 Apr 2026 +4 d | backfilled | 0 | PoC |
| mki9/CVE-2026-39987_exploit | 13 Apr 2026 +4.3 d | backfilled | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| keraattin/CVE-2026-39987 | 15 Apr 2026 +5.6 d | backfilled | 1 | PoC |
| Nxploited/CVE-2026-39987 | 18 Apr 2026 +8.6 d | backfilled | 1 | PoC |
| Dhiaelhak-Rached/CVE-2026-39987-lab-or-marimo-cve-lab | 26 Apr 2026 +17 d | backfilled | 0 | PoC |
| rootdirective-sec/CVE-2026-39987-Lab | 4 May 2026 +25 d | backfilled | 1 | PoC |
| 0xdeadroot/CVE-2026-39987-marimo-rce | 16 May 2026 +36 d | backfilled | 0 | PoC |
| M3PH1569/CVE-2026-39987-POC | 24 May 2026 +45 d | backfilled | 5 | PoC |
| jasonbernier/CVE-2026-39987 | 2 Aug 2026 +115 d | backfilled | 0 | PoC |
| vanhari/CVE-2026-39987 | 2 Aug 2026 +115 d | backfilled | 0 | PoC |
| snehil00121/Public_CVEs_Exploit | 4 Aug 2026 +117 d | backfilled | 0 | PoC |
| alreadyClosed/CVE-2026-39987 | 7 Aug 2026 +120 d | backfilled | 0 | PoC |
| iapetus12/cohort-htb | 8 Aug 2026 +121 d | backfilled | 0 | PoC |
| MADA0L/CVE-2026-39987-Poc | 10 Aug 2026 +122 d | backfilled | 0 | PoC |
| matesz44/cve-2026-39987 | 12 Aug 2026 +125 d | backfilled | 0 | PoC |
| dodeepsink/CVE-2026-39987.py | 20 Aug 2026 +133 d | backfilled | 0 | PoC |
| Ghxstsec/CVE-2026-39987 | 1 Sep 2026 +145 d | backfilled | 1 | PoC |
| stapat1245/CVE-2026-39987-PoC | 7 Sep 2026 +151 d | backfilled | 0 | PoC |
| Th3Purge/CVE-2026-39987 | 8 Sep 2026 +152 d | backfilled | 9 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| julichaan/CVE-2026-39987_POC | 11 Sep 2026 +155 d | backfilled | 0 | PoC |
| mfahdk/CVE-2026-39987_RCE_PoC | 20 Sep 2026 +164 d | backfilled | 0 | PoC |
| LaRemontada12/CVE-2026-39987-Marimo-RCE-SOC-Detection | 27 Sep 2026 +171 d | backfilled | 1 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| Industri4l-H3ll-Xpl0it3rs/CVE-2026-39987-Marimo-RCE | 16 Oct 2026 +190 d | 14 Nov 2026 | 0 | PoC |
| dntaskmehow/MARABUSE | 20 Oct 2026 +194 d | 14 Nov 2026 | 0 | PoC |
| lunacysoft/CVE-2026-39987-POC-Marimo | 24 Oct 2026 +198 d | 14 Nov 2026 | 0 | PoC |
| 0xv01d/CVE-2026-39987 | 13 Nov 2026 +218 d | 14 Nov 2026 | 0 | PoC |
Pending 2
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| 1nt1m4cy/HTB-Cohort | 4 Nov 2026 +208 d | 14 Nov 2026 | 2 | Pending |
| Arnau029/CVE-2026-39987-PoC | 14 Nov 2026 +219 d | 14 Nov 2026 | 0 | Pending |
Informational 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| h3raklez/CVE-2026-39987 | 25 Apr 2026 +16 d | 1 | Informational · write-up |
| HORKimhab/CVE-2026-39987 | 30 May 2026 +51 d | 0 | Informational · write-up |
Suspicious or fake 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| gbuyssens/CVE-2026-39987 | 2 Aug 2026 +115 d | 0 | Fake
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| Wind010/CVE-2026-39987_PoC | 3 Aug 2026 +116 d | 2 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | Marimo 0.20.4 - RCE | 2 Sep 2026 | 14 Nov 2026 |
| nuclei template | nuclei template: Marimo <= 0.20.4 - Pre-Auth Terminal WebSocket RCE | unknown | 14 Nov 2026 |
| PoC Index | https://www.sysdig.com/blog/marimo-oss-python-notebook-rce-from-disclosure-to-exploitation-in-under-10-hours | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 29 PoC reposGET /api/version
- Ports
- 8080
- Seen in
- 4 repos: 0xBlackash/CVE-2026-39987, 0xredash/CVE-2026-39987, ashrafzaryouh/CVE-2026-39987, fevar54/marimo_CVE-2026-39987_RCE_PoC
- Evidence
- 0xBlackash/CVE-2026-39987/CVE-2026-39987.yaml:44 0xredash/CVE-2026-39987/CVE-2026-39987.yaml:44 ashrafzaryouh/CVE-2026-39987/CVE-2026-39987.yaml:44 fevar54/marimo_CVE-2026-39987_RCE_PoC/CVE-2026-39987_nuclei.yaml:33
GET /terminal/ws
- Key headers
Sec-Websocket-Key: dGhlIHNhbXBsZSBub25jZQ==Sec-Websocket-Key: dGVzdC1rZXktMTIzNDU2Nzg=Sec-Websocket-Version: 13Upgrade: websocket- Ports
- 2718, 8080, 8888
- Seen in
- 3 repos: 0xv01d/CVE-2026-39987, fevar54/marimo_CVE-2026-39987_RCE_PoC, keraattin/CVE-2026-39987
- Evidence
- 0xv01d/CVE-2026-39987/README.md:81 fevar54/marimo_CVE-2026-39987_RCE_PoC/CVE-2026-39987_nuclei.yaml:49 keraattin/CVE-2026-39987/README.md:414
POST /api/validate
- Body markers
"url":"http://127.1:80/status"- Ports
- 80
- Seen in
- 1 repo: iapetus12/cohort-htb
- Evidence
- iapetus12/cohort-htb/README.md:28
GET /api/status
- Ports
- 2718
- Seen in
- 1 repo: keraattin/CVE-2026-39987
- Evidence
- keraattin/CVE-2026-39987/README.md:411
GET /ws
- Key headers
Sec-Websocket-Key: dGVzdC1rZXktMTIzNDU2Nzg=Sec-Websocket-Version: 13Upgrade: websocket- Ports
- 2718
- Seen in
- 1 repo: keraattin/CVE-2026-39987
- Evidence
- keraattin/CVE-2026-39987/README.md:425
POST /api/v1/execute
- Body markers
"code""config"inapplication/json- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36- Seen in
- 1 repo: dntaskmehow/MARABUSE
- Evidence
- dntaskmehow/MARABUSE/(CVE-2026-39987)- MARIMO RCE & NKABUSE EXPLOIT FRAMEWORK/marimo-rce.py:65
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/version(?:[?#].*)?$
(?i)^/terminal/ws(?:[?#].*)?$
(?i)^/api/validate(?:[?#].*)?$
(?i)^/api/status(?:[?#].*)?$
(?i)^/ws(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-39987 marimo-team marimo exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/version"; reference:url,poc.griffinguard.io/cve/CVE-2026-39987; classtype:web-application-attack; sid:9460229; rev:1;)
alert http any any -> $HOME_NET [2718,8080,8888] (msg:"GG PoC-Monitor CVE-2026-39987 marimo-team marimo exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/terminal/ws"; http.header; content:"Sec-Websocket-Key: dGhlIHNhbXBsZSBub25jZQ=="; nocase; http.header; content:"Sec-Websocket-Key: dGVzdC1rZXktMTIzNDU2Nzg="; nocase; http.header; content:"Sec-Websocket-Version: 13"; nocase; http.header; content:"Upgrade: websocket"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-39987; classtype:web-application-attack; sid:9497953; rev:1;)
alert http any any -> $HOME_NET [80] (msg:"GG PoC-Monitor CVE-2026-39987 marimo-team marimo exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/validate"; http.request_body; content:"|22|url|22|:|22|http://127.1:80/status|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-39987; classtype:web-application-attack; sid:9766661; rev:1;)
alert http any any -> $HOME_NET [2718] (msg:"GG PoC-Monitor CVE-2026-39987 marimo-team marimo exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/status"; reference:url,poc.griffinguard.io/cve/CVE-2026-39987; classtype:web-application-attack; sid:9427453; rev:1;)
alert http any any -> $HOME_NET [2718] (msg:"GG PoC-Monitor CVE-2026-39987 marimo-team marimo exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/ws"; http.header; content:"Sec-Websocket-Key: dGVzdC1rZXktMTIzNDU2Nzg="; nocase; http.header; content:"Sec-Websocket-Version: 13"; nocase; http.header; content:"Upgrade: websocket"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-39987; classtype:web-application-attack; sid:9633844; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: marimo-team marimo exploit attempt (CVE-2026-39987)
id: gg-pocmon-cve-2026-39987-9460229
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-39987. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-39987
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/version'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.39987
title: marimo-team marimo exploit attempt (CVE-2026-39987)
id: gg-pocmon-cve-2026-39987-9497953
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-39987. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-39987
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/terminal/ws'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.39987
title: marimo-team marimo exploit attempt (CVE-2026-39987)
id: gg-pocmon-cve-2026-39987-9766661
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-39987. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-39987
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/validate'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.39987
title: marimo-team marimo exploit attempt (CVE-2026-39987)
id: gg-pocmon-cve-2026-39987-9427453
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-39987. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-39987
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/status'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.39987
title: marimo-team marimo exploit attempt (CVE-2026-39987)
id: gg-pocmon-cve-2026-39987-9633844
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-39987. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-39987
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/ws'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.39987