Skip to content

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

CriticalCVSS 10.0 EPSS 2.7% Scanner template
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
pypi mercury(PyPI) = 3.0.0; = 3.0.1; = 3.0.2; = 3.1.0 +10 more 3.2.4 Fixed
mljar mercury = >= 3.0.0, < 3.2.4 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi mercury(PyPI) >= 3.0.0, < 3.2.4 3.2.4
pypi mercury(PyPI) = 3.0.0 No fix listed
pypi mercury(PyPI) = 3.0.1 No fix listed
pypi mercury(PyPI) = 3.0.2 No fix listed
pypi mercury(PyPI) = 3.1.0 No fix listed
pypi mercury(PyPI) = 3.1.1 No fix listed
pypi mercury(PyPI) = 3.1.2 No fix listed
pypi mercury(PyPI) = 3.1.4 No fix listed
pypi mercury(PyPI) = 3.1.5 No fix listed
pypi mercury(PyPI) = 3.2.0 No fix listed
pypi mercury(PyPI) = 3.2.1 No fix listed
pypi mercury(PyPI) = 3.2.2 No fix listed
pypi mercury(PyPI) = 3.2.3 No fix listed
mljar mercury = >= 3.0.0, < 3.2.4 No fix listed
pypi mercury(PyPI) >= 3.0.0, <= 3.2.3 No fix listed

References