Mercury
Mercury: Unauthenticated Remote Code Execution via /api/kernels
Mercury is a Python framework for sharing Jupyter notebooks as web applications and dashboards. Prior to 3.2.6, default tokenless deployments allow anonymous clients to create Jupyter kernels and send execute_request messages containing arbitrary Python. The endpoint blocklist does not cover /api/kernels, and the websocket wrapper previously tracked idle activity without authorizing executable messages. This issue is fixed in version 3.2.6.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.2.6
Fixed in 3.2.6
Mitigation
Upgrade mercury to 3.2.6 or later.
References
- Vendor advisory github.com/mljar/mercury/security/advisories/G…
- Patch github.com/mljar/mercury/commit/73a40ceb0becf0…
- Release notes github.com/mljar/mercury/releases/tag/3.2.6
Timeline
Days relative to CVE publicationFirst public PoC 13 h after publication; not in CISA KEV. First PoC: ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce (created 20 Oct 2026, found by us: 14 Nov 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce | 20 Oct 2026 +13 h | 14 Nov 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /api/kernels
- Body markers
"name":"python3""name"inapplication/json- Ports
- 8883, 8885, 8888
- Seen in
- 1 repo: ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce
- Evidence
- ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce/README.md:201 ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce/mercury_combo/kernels_rce.py:29 ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce/mercury_combo/recon.py:72
POST /api/terminals
- Ports
- 8883, 8885, 8888
- Seen in
- 1 repo: ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce
- Evidence
- ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce/README.md:200 ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce/mercury_combo/recon.py:71 ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce/mercury_combo/terminals_rce.py:27
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/kernels(?:[?#].*)?$
(?i)^/api/terminals(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8883,8885,8888] (msg:"GG PoC-Monitor CVE-2026-111058 mljar mercury exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/kernels"; http.request_body; content:"|22|name|22|:|22|python3|22|"; http.request_body; content:"|22|name|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-111058; classtype:web-application-attack; sid:9841173; rev:1;)
alert http any any -> $HOME_NET [8883,8885,8888] (msg:"GG PoC-Monitor CVE-2026-111058 mljar mercury exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/terminals"; reference:url,poc.griffinguard.io/cve/CVE-2026-111058; classtype:web-application-attack; sid:9575858; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: mljar mercury exploit attempt (CVE-2026-111058)
id: gg-pocmon-cve-2026-111058-9841173
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-111058. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-111058
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/kernels'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.111058
title: mljar mercury exploit attempt (CVE-2026-111058)
id: gg-pocmon-cve-2026-111058-9575858
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-111058. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-111058
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/terminals'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.111058