CVE-2026-111058: Unauthenticated Remote Code Execution in Mercury Kernel APIs
CVE-2026-111058 is a missing-authorization vulnerability in Mercury, a Python framework for publishing Jupyter notebooks as web applications and dashboards, affecting versions before 3.2.6. In default tokenless deployments, anonymous clients can create Jupyter kernels and submit WebSocket execute_request messages containing arbitrary Python code. The endpoint blocklist omits the kernel creation API, while the vulnerable WebSocket wrapper tracks idle activity without authorizing executable messages. This permits unauthenticated remote code execution with the privileges of the Mercury server process. Mercury 3.2.6 fixes the vulnerability; the earlier terminal-related fix in version 3.2.4 does not address it.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise the confidentiality, integrity, and availability of resources accessible to the Mercury server process. Attackers can execute arbitrary Python, access data and credentials, modify accessible resources, and disrupt service. Host or container compromise and access to connected resources are possible, subject to the process's permissions and deployment isolation.
Mitigation
If you can’t patch tonight, do this now.
Disable anonymous access by configuring --token or MERCURY_TOKEN, and enforce token or password authentication on each request and WebSocket connection. Alternatively, restrict kernel messages so anonymous WebSocket clients cannot submit execute_request messages outside Mercury's controlled execution flow. Adding another endpoint blocklist entry alone is insufficient because Mercury requires kernel access to run notebooks.
Remediation
Patch, then assume compromise.
Upgrade the PyPI mercury package and related affected packages to version 3.2.6 or later. Ensure authentication protects both kernel API requests and kernel WebSocket access. Version 3.2.4's terminal-related fix is insufficient for this vulnerability.
Exploits
1 exploit validated by Mallory's analysis.
References
Frequently asked questions
- Is CVE-2026-111058 exploited in the wild?
- As of Oct 26, 2026, Mallory has no reports of CVE-2026-111058 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-111058?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-111058, the earliest disclosed Oct 20, 2026.
- Is there a patch for CVE-2026-111058?
- Upgrade the PyPI mercury package and related affected packages to version 3.2.6 or later. Ensure authentication protects both kernel API requests and kernel WebSocket access.
- How severe is CVE-2026-111058?
- CVE-2026-111058 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 0.52% (45th percentile) as of Oct 26, 2026.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.