{"id":"CVE-2026-111057","published":"2026-10-19T16:04:07Z","modified":"2026-10-28T15:31:24Z","title":"Mercury: Unauthenticated Remote Code Execution in /api/terminals - access control bypass","vendor":"mljar","product":"mercury","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03245,"percentile":0.89075,"provenance":"source"},"cwes":[{"id":"CWE-185","name":"Incorrect Regular Expression"},{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"https://github.com/mljar/mercury/security/advisories/GHSA-f8c7-rwf9-fmgm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mljar/mercury/commit/8c467129037ee9df269d543ac217ffd33b97bf3f","tags":["x_refsource_MISC"]},{"url":"https://github.com/mljar/mercury/releases/tag/v3.2.4","tags":["x_refsource_MISC"]}],"priority":{"score":29.8,"factors":[{"name":"EPSS percentile","points":17.82},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":7.0}]},"exploitSources":{"nuclei":[{"id":"CVE-2026-111057","name":"Mercury 3.0.0 - 3.2.3 - Unauthenticated Terminal Access","severity":"critical","path":"http/cves/2026/CVE-2026-111057.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-111057.yaml"}],"provenance":"source"},"vendorSlug":"mljar","affectedVersions":[{"vendor":"mljar","product":"mercury","versions":[">= 3.0.0, < 3.2.4"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-10-28T15:31:16.899020Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mercury","vulnerableRanges":[">=3.0.0, <3.2.4"],"patched":["3.2.4"],"from":["GHSA-f8c7-rwf9-fmgm"],"provenance":"source"}],"summary":{"text":"The Mercury framework for sharing Jupyter notebooks as web applications contains a missing comma in its BLOCKED_PATTERNS list, which concatenates two regular-expression literals and lets requests to /api/terminals bypass the anonymous endpoint blocklist. An attacker with network access and no authentication or user interaction can reach Jupyter Server's terminal API and use the resulting interactive operating-system shell to run commands and access data available to the Mercury process, affecting versions from 3.0.0 through 3.2.4.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:03:20Z"},"euvd":{"id":"EUVD-2026-104419","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mljar-mercury-cve-2026-111057","children":[{"from":"CVE-2026-111057","to":"CVE-2026-111058","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mercury","fromFixed":"3.2.4","toFixed":"3.2.6","daysApart":0},{"kind":"same-code","provenance":"machine","files":["mercury_app/block_handler.py"],"commits":["https://github.com/mljar/mercury/commit/8c467129037ee9df269d543ac217ffd33b97bf3f","https://github.com/mljar/mercury/commit/73a40ceb0becf057f495a5738ad7f5a5222a53e1"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.4,"basis":"same product + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-111057","published":"2026-10-19","fixed":"3.2.4","kev":false},{"cve":"CVE-2026-111058","published":"2026-10-19","fixed":"3.2.6","kev":false},{"cve":"CVE-2026-111059","published":"2026-10-19","fixed":"3.2.11","kev":false}],"package":"PyPI:mercury"}}