Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
10.0
CVE-2026-111057: Mercury allows unauthenticated remote command execution
CVE-2026-111057 · published 1 month ago
Summary
Versions of Mercury from 3.0.0 through 3.2.3 let anyone send a request to the terminals API and reach the underlying Jupyter server. This gives an attacker a shell they can use to run commands and view data the Mercury process can access. Upgrade to version 3.2.4 or later to close the gap.
What to do
- Update mercury to version 3.2.4.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | mljar | mercury | >= 3.0.0, < 3.2.4 |
| pip | – | mercury |
>= 3.0.0, <= 3.2.3 Fix: upgrade to 3.2.4
|
| PyPI | – | mercury |
>= 3.0.0, < 3.2.4 Fix: upgrade to 3.2.4
|
Original advisory text
Mercury: Unauthenticated Remote Code Execution in /api/terminals - access control bypass
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.
References
- https://github.com/mljar/mercury Product
- https://github.com/mljar/mercury/releases/tag/v3.2.4 x_refsource_MISC
- https://github.com/advisories/GHSA-f8c7-rwf9-fmgm
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-1110... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-111057 Vendor Advisory
- https://github.com/mljar/mercury/security/advisories/GHSA-f8c7-rwf9-fmgm x_refsource_CONFIRM
- https://github.com/mljar/mercury/commit/8c467129037ee9df269d543ac217ffd33b97bf3f x_refsource_MISC
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker full control
Type
CWE-185Incorrect Regular Expression
CWE-284Improper Access Control
Timeline
Published19 Oct 2026
Updated19 Nov 2026
First seen19 Oct 2026
Sources
CVE-2026-111057 · NVD
CVE-2026-111057 · MITRE
GHSA-f8c7-rwf9-fmgm · GHSA
CVE-2026-111057 · OSV
GHSA-f8c7-rwf9-fmgm · OSV
Track software like this
Free during beta