p PatchFirst

CVE-2026-111057

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 10.0 · Critical · EPSS 0.4% · Public exploit · Fix available

Published
Updated

Stack: python

Affected products and versions

  • mercury

    Versions
    • >= 3.0.0, < 3.2.4: Affected

    No fix published

  • mercury PyPI

    Versions
    • 3.0.0
    • 3.0.1
    • 3.0.2
    • 3.1.0
    • 3.1.1
    • 3.1.2
    • 3.1.4
    • 3.1.5
    • 3.2.0
    • 3.2.1
    • 3.2.2
    • 3.2.3
    Affected ranges
    • ECOSYSTEM: ≥ 3.0.0, < 3.2.4

    Update to 3.2.4

Original sources

Check your server →