Mercury
Mercury: Unauthenticated Remote Code Execution in /api/terminals - access control bypass
Mercury is a Python framework for sharing Jupyter notebooks as web applications and dashboards. From 3.0.0 until 3.2.4, a missing comma in BLOCKED_PATTERNS concatenates the /lab and /api/terminals regular-expression literals. Requests to /api/terminals therefore bypass the anonymous endpoint blocklist and reach Jupyter Server's terminal API. An unauthenticated attacker can use the resulting interactive operating-system shell to execute commands and access data available to the Mercury process. This issue is fixed in version 3.2.4.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3.0.0, < 3.2.4
Fixed in 3.2.4
Mitigation
Upgrade mercury to 3.2.4 or later.
References
- Vendor advisory github.com/mljar/mercury/security/advisories/G…
- Patch github.com/mljar/mercury/commit/8c467129037ee9…
- Release notes github.com/mljar/mercury/releases/tag/v3.2.4
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.
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 |
|---|---|---|---|
| nuclei template | nuclei template: Mercury 3.0.0 - 3.2.3 - Unauthenticated Terminal Access | 16 Nov 2026 | 17 Nov 2026 |
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-111057 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-111057; classtype:web-application-attack; sid:9358816; rev:1;)
alert http any any -> $HOME_NET [8883,8885,8888] (msg:"GG PoC-Monitor CVE-2026-111057 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-111057; classtype:web-application-attack; sid:9040355; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: mljar mercury exploit attempt (CVE-2026-111057)
id: gg-pocmon-cve-2026-111057-9358816
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-111057. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-111057
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.111057
title: mljar mercury exploit attempt (CVE-2026-111057)
id: gg-pocmon-cve-2026-111057-9040355
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-111057. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-111057
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.111057