SecurityContext

CVE-2026-111057: Mercury 3.0.0 - 3.2.3 - Unauthenticated Terminal Access

Classification

  • Cwe: CWE-284
  • Cvss score: 10
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Epss score: 0.02659
  • Epss percentile: 0.86069
  • Not known: cpe

Metadata

  • Fofa-query: body="--mercury-text-color"
  • Max-request: 2
  • Product: mercury
  • Shodan-query: http.html:"--mercury-text-color"
  • Vendor: mljar
  • Verified: yes

Products

ProductIndexedUrl
mljar:mercuryno—

Labels

  • Name: Mercury - Command Injection
  • Impact: Unauthenticated attackers can execute arbitrary commands and access data via the terminal API, risking full system compromise.
  • Remediation: Update to version 3.2.4 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2026-111057
  • Not known: requirements

```yaml

id: CVE-2026-111057

info:

name: Mercury 3.0.0 - 3.2.3 - Unauthenticated Terminal Access

author: s4e-io

severity: critical

description: |

Mercury 3.0.0 through 3.2.3 is missing a comma in the BLOCKED_PATTERNS list of mercury_app/block_handler.py. Python joins the JupyterLab rule and the /api/terminals rule into one regular expression, so a direct request to /api/terminals is not blocked and reaches the Jupyter Server terminal API without authentication.

impact: |

Unauthenticated attackers can create a terminal through the Jupyter Server API and run operating system commands on the host as the user that runs Mercury.

remediation: |

Upgrade to version 3.2.4 or later.

reference:

- https://github.com/mljar/mercury/security/advisories/GHSA-f8c7-rwf9-fmgm

- https://github.com/mljar/mercury/commit/8c467129037ee9df269d543ac217ffd33b97bf3f

- https://nvd.nist.gov/vuln/detail/CVE-2026-111057

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

cvss-score: 10

cve-id: CVE-2026-111057

epss-score: 0.02659

epss-percentile: 0.86069

cwe-id: CWE-284

metadata:

verified: true

max-request: 2

vendor: mljar

product: mercury

shodan-query: http.html:"--mercury-text-color"

fofa-query: body="--mercury-text-color"

tags: cve,cve2026,mercury,mljar,jupyter,unauth,rce

flow: http(1) && http(2)

http:

- raw:

- |

GET / HTTP/1.1

Host: {{Hostname}}

matchers:

- type: dsl

dsl:

- 'status_code == 200'

- 'contains(body, "--mercury-")'

condition: and

internal: true

- raw:

- |

GET /api/terminals HTTP/1.1

Host: {{Hostname}}

matchers:

- type: dsl

dsl:

- 'status_code == 200'

- 'contains(content_type, "json")'

- 'regex("^\\s*\\[", body)'

condition: and

digest: 490a00463044022074ffedddf51060e3a81a4565ec341f70a2dc879ccac252407977df33a74ddb270220624f87508521ffcbc5621666a2cfd04540ce21d0716a1007c7f4aa80e5539375:922c64590222798bb761d5b6d8e72950

```