Skip to content
OpenAdvisories
Critical · 10.0 CVE-2026-111057 EUVD-2026-104419GHSA-f8c7-rwf9-fmgm

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

Published Oct 19, 2026 · Updated Oct 28, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
mljar mercury >= 3.0.0, < 3.2.4 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI mercury >= 3.0.0, < 3.2.4 3.2.4 GHSA-f8c7-rwf9-fmgm

References