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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/mljar/mercury/security/advisories/GHSA-f8c7-rwf9-fmgm exploit vendor-advisory
- https://github.com/mljar/mercury/commit/8c467129037ee9df269d543ac217ffd33b97bf3f patch
- github.com product
- https://github.com/mljar/mercury/releases/tag/v3.2.4
- github.com
- ENISA EUVD EUVD-2026-104419 third-party-advisory