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

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.13%, higher than 88% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-19T16:04:07.065Z
- Modified: 2026-10-28T16:17:00.940Z
- Also known as: GHSA-f8c7-rwf9-fmgm
- Weaknesses: CWE-185, CWE-284
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- 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.

(As written by CVE List.)

## Affected

- mljar mercury: >= 3.0.0, < 3.2.4
- mercury (PyPI): from 3.0.0 before 3.2.4

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/mljar/mercury/security/advisories/GHSA-f8c7-rwf9-fmgm> (exploit, web)
- <https://github.com/mljar/mercury/commit/8c467129037ee9df269d543ac217ffd33b97bf3f> (web)
- <https://github.com/mljar/mercury/releases/tag/v3.2.4> (web)
- <https://github.com/mljar/mercury> (package)

## Sources

- CVE List: [CVE-2026-111057](https://www.cve.org/CVERecord?id=CVE-2026-111057), CVE Terms of Use, modified 2026-10-28
- GitHub Advisory Database: [GHSA-f8c7-rwf9-fmgm](https://github.com/advisories/GHSA-f8c7-rwf9-fmgm), CC-BY-4.0, modified 2026-10-19
- NVD: [CVE-2026-111057](https://nvd.nist.gov/vuln/detail/CVE-2026-111057), Public domain, modified 2026-10-28

---

Page: https://cve.day/CVE-2026-111057 · Whole record: https://cve.day/CVE-2026-111057.json · Rebuilt by cve.day 2026-11-25T22:59:45.514Z
