{"id":"CVE-2026-111057","summary":"Mercury: Unauthenticated Remote Code Execution in /api/terminals - access control bypass","details":"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.","aliases":["GHSA-f8c7-rwf9-fmgm"],"modified":"2026-10-20T02:44:16.232893575Z","published":"2026-10-19T16:04:07.065Z","database_specific":{"cwe_ids":["CWE-185","CWE-284"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111057.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111057.json"},{"type":"FIX","url":"https://github.com/mljar/mercury/commit/8c467129037ee9df269d543ac217ffd33b97bf3f"},{"type":"WEB","url":"https://github.com/mljar/mercury/releases/tag/v3.2.4"},{"type":"ADVISORY","url":"https://github.com/mljar/mercury/security/advisories/GHSA-f8c7-rwf9-fmgm"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-111057"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mljar/mercury","events":[{"introduced":"d6921dd842d5835d43a7558c5a4ddbcff8b5e540"},{"fixed":"7f637cd690fdd8d8461e500f9ebc030f0aef2e17"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"3.0.0"},{"fixed":"3.2.4"}]}}],"versions":["v3.2.3","v3.2.2","v3.2.1","v3.2.0","v3.1.2","v3.1.1","v3.1.0","v3.0.1","v3.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-111057.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"}]}