{
  "id": "CVE-2026-111057",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-111057",
  "published_at": "2026-10-19T16:04:07.065Z",
  "title": "Mercury: Unauthenticated Remote Code Execution in /api/terminals - access control bypass",
  "vendor": "mljar",
  "product": "mercury",
  "cvss": {
    "score": 10,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-10-20T04:38:18Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 0.5,
    "repo": "ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-185",
  "cvss_by_source": {
    "cna": 10
  },
  "repos": [
    {
      "repo": "ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce",
      "url": "https://github.com/ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce",
      "created_at": "2026-10-20T04:38:18Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-01-30T13:31:40Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "mljar",
        "product": "mercury",
        "ranges": [
          "\u003e= 3.0.0, \u003c 3.2.4"
        ],
        "fixed_in": [
          "3.2.4"
        ]
      }
    ],
    "upgrade": [
      "Upgrade mercury to 3.2.4 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/mljar/mercury/security/advisories/GHSA-f8c7-rwf9-fmgm"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mljar/mercury/commit/8c467129037ee9df269d543ac217ffd33b97bf3f"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/mljar/mercury/releases/tag/v3.2.4"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-111057.yaml",
      "source": "nuclei",
      "title": "nuclei template: Mercury 3.0.0 - 3.2.3 - Unauthenticated Terminal Access",
      "published_at": "2026-11-16T20:16:45Z",
      "first_seen_at": "2026-11-17T08:48:45.719Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/api/kernels",
      "body_markers": [
        "\"name\":\"python3\"",
        "\"name\""
      ],
      "content_type": "application/json",
      "ports": [
        8883,
        8885,
        8888
      ],
      "protocol": "https",
      "repos": [
        "ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce/README.md:201",
        "ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce/mercury_combo/kernels_rce.py:29",
        "ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce/mercury_combo/recon.py:72"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/terminals",
      "ports": [
        8883,
        8885,
        8888
      ],
      "protocol": "https",
      "repos": [
        "ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce/README.md:200",
        "ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce/mercury_combo/recon.py:71",
        "ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce/mercury_combo/terminals_rce.py:27"
      ]
    }
  ],
  "rules": []
}
