CVE-2026-111057 Mercury: Unauthenticated Remote Code Execution in /api/terminals - access control bypass

Critical 10.0 Published Updated

An unauthenticated attacker can bypass access controls to execute arbitrary commands and read data via the terminal API in Mercury.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-111057?

CVE-2026-111057 is a critical authentication bypass vulnerability in mljar mercury, published on 19 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-284, CWE-185

Which versions are affected by CVE-2026-111057?

2 open source packages ship an affected version, including mercury.

PackageAffectedFixed in
mercury PyPIFrom 3.0.03.2.4
mercury PyPIFrom 3.0.03.2.4

How do I fix CVE-2026-111057?

Upgrade mercury to 3.2.4 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2026-111057 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-111057 exists.

Sources

Also known as GHSA-f8c7-rwf9-fmgm.

Is CVE-2026-111057 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free