Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2026-111058: Unauthenticated Remote Code Execution in Mercury Kernel APIs

Published Oct 19, 2026 · Updated 28 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 2 in a dayToday
CVSS9.8Critical · v3.1
EPSS0.52%45th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
IdentifiersCVE-2026-111058CWE-862 · Missing Authorization

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

1 exploit validated by Mallory's analysis.

View more in app →
CVE-2026-111058-CVE-2026-111057-mercury-rceThe supplied repository contains 20 files, including 12 Python source files, two Dockerfiles, a Compose configuration, and a Python-bearing notebook. It is a standalone exploit toolkit, not an identified established-framework module. exploit.py provides recon, rce, exfil, full, persist, and mass modes. mercury_combo/ implements API probing, kernel and terminal execution, threaded scanning, data collection, speculative cookie forging, persistence demonstrations, and utilities. poc/ contains deterministic marker payloads. lab/ builds Mercury 3.2.3 and 3.2.5 containers. Dependencies are requests, websocket-client, itsdangerous, and rich. The kernel path creates a python3 kernel and sends Jupyter execute_request messages over its channels WebSocket. The terminal path creates a terminal and sends shell commands over its terminal WebSocket. The repository attributes these to CVE-2026-111058 and CVE-2026-111057 respectively; these identifiers and affected-version claims were not independently verified. Its heuristic labels versions 3.0.0–3.2.3 as exposing both paths and 3.2.4–3.2.5 as exposing kernels only. This is status-based guessing, not authoritative version detection. Mass mode tries the default scheme port followed by 8888, 8000, and 5000 when no explicit port is supplied. It executes id and records only targets with recognizable identity output. Recon itself is state-changing: it attempts to create both a terminal and a kernel, and no resource cleanup is implemented. HTTP 201 alone does not establish successful WebSocket execution. The collector returns environment variables, selected configuration contents, candidate secrets, and notebook paths through the existing execution channel, then writes local JSON. There is no hardcoded external exfiltration service or reverse-shell destination. A distinctive HTTP User-Agent is Mercury-CVE-2026-111058-111057-combo/0.1 (authorized-test; 0xNuts). Session forging is speculative: the implementation assumes Flask-style sessions without establishing compatibility with Mercury's actual authentication. Its generic serializer may not match Flask signing settings, candidate deduplication discards alternate cookie names for identical values, and validation treats accessible HTTP 200 responses as success without an unauthenticated baseline. Consequently, reported cookie success does not prove privilege escalation. Persistence claims exceed the implemented behavior. The dropped notebook only writes a marker if later executed; the source patch performs an inert MERCURY_COMBO_BD check; cron only refreshes a marker file. Full mode attempts cron even without --cron, which can fail on a kernels-only target because terminal access is still required. This is genuine exploit-oriented code with basic embedded payloads, but execution and advisory validity were not tested. The repository URL was inferred from the README; no Git reference or archive size was supplied, so the empty ref and zero size represent unavailable metadata.ExDev994 · Disclosed Oct 20, 2026 · python · bash · network · webOperational
FAQ

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.
Activity feed

Recent activity

8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
ghsa syntheticNews · Oct 19, 2026GHSA-rv4m-xm3f-3ccqUnauthenticated remote code execution in Mercury's default configuration. Anonymous clients can access Jupyter kernel endpoints and submit arbitrary Python code because the endpoint blocklist does not block kernels and the websocket handler does not filter execution requests. Code executes as the Mercury server process user, potentially compromising the host/container and accessible data or secrets. The advisory reports a deterministic proof of concept and lists version 3.2.6 as fixed.Read more ↗cvefeed high severityNews · Oct 19, 2026CVE-2026-111058 - Mercury: Unauthenticated Remote Code Execution via /api/kernelsAn unauthenticated remote code execution vulnerability in Mercury, a Python framework for publishing Jupyter notebooks as web applications and dashboards. In default tokenless deployments before version 3.2.6, anonymous clients can create kernels through the unblocked /api/kernels endpoint and execute arbitrary Python because executable websocket messages lack authorization. The supplied CVSS vector indicates network exploitation with low complexity, no privileges or user interaction, and high confidentiality, integrity, and availability impacts. The SSVC assessment records no exploitation, automated exploitation as feasible, and total technical impact.Read more ↗tenable cloud security pluginsNews · Oct 19, 2026SCA: security update for mercury (GHSA-rv4m-xm3f-3ccq) | Tenable®A critical missing-authorization vulnerability in Mercury, a Python framework for sharing Jupyter notebooks as web applications and dashboards. In default tokenless deployments before version 3.2.6, unauthenticated remote clients can create kernels and execute arbitrary Python because kernel endpoints and executable WebSocket messages lack adequate authorization. The advisory assigns a CVSS v3 score of 9.8. Version 3.2.6 fixes the issue.Read more ↗
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity5Community discussion across Reddit, Mastodon, and other social sources.