CVE-2026-111057: Mercury Unauthenticated Remote Code Execution via API Terminals Access Control Bypass

mercury Updated 19 Oct 2026

Summary

19/10/2026
Yes i
Critical
10.0

CVE-2026-111057: Mercury: Unauthenticated Remote Code Execution in /api/terminals - access control bypass. Affects mercury versions >= 3.0.0, < 3.2.4. Fixed in 3.2.4. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Mercury is an open-source application designed to facilitate interactive computing environments, particularly for JupyterLab users. It allows users to manage notebooks, execute code, and interact with various data sources. However, a critical vulnerability has been identified that allows unauthenticated users to gain unauthorized access to the system's terminal API, potentially leading to severe security breaches.

Vulnerability Detail

The vulnerability arises from a missing comma in the BLOCKED_PATTERNS list within the mercury_app/block_handler.py file. This omission causes the blocklist to fail to effectively cover the /api/terminals endpoint, allowing any unauthenticated attacker to spawn a full, interactive OS-level shell on the host running Mercury. The implications of this vulnerability are severe, as it grants attackers full read and write access to the system, enabling them to manipulate files, access sensitive data, and potentially compromise the entire server.

How To Fix

Latest published version: 3.2.11 as of 22 Oct 2026

pip install --upgrade "mercury==3.2.11"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.2.4

This is the first release that contains the fix.

pip install --upgrade "mercury==3.2.4"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, restrict access to the Mercury server by implementing network-level controls such as firewalls or VPNs to prevent unauthorized access until the patch is applied.

Conclusion

The CVE-2026-111057 vulnerability in Mercury poses a significant risk due to its potential for unauthenticated remote code execution. It is crucial for users to update their installations and apply the necessary fixes to safeguard their systems.

See every vulnerability recorded for mercury →

Share this vulnerability

FAQ

CVE-2026-111057 is a critical vulnerability in the Mercury application that allows unauthenticated remote code execution via the /api/terminals endpoint due to an access control bypass.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The vulnerability can lead to full read and write access to the system, allowing attackers to modify files, access sensitive data, and potentially take control of the server.

To fix the vulnerability, update Mercury to version 3.2.4 or later and ensure the BLOCKED_PATTERNS list is correctly formatted in the mercury_app/block_handler.py file.

The CVSS score of this vulnerability is 10.0, indicating a critical level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for mercury.

How To Fix

Latest published version: 3.2.11 as of 22 Oct 2026

pip install --upgrade "mercury==3.2.11"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.2.4

This is the first release that contains the fix.

pip install --upgrade "mercury==3.2.4"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback