Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mercury
  4. ›
  5. CVE-2026-111059

CVE-2026-111059: Mercury: Stored / DOM Cross-Site Scripting (XSS): mr.Markdown renders untrusted content as raw, unsanitized HTML

October 19, 2026

Mercury turns Jupyter notebooks into shared web apps/dashboards. The mr.Markdown widget converts its input to HTML with python-markdown and no sanitization step. MarkdownWidget is an ipywidgets.HTML widget, whose value is written to the page as raw HTML (via innerHTML) with no sanitization, so the result reaches the DOM verbatim. When an app passes untrusted data (database rows, user submissions, uploaded file contents, or an external/LLM API response) to mr.Markdown, HTML/JS in that data executes in the browser of whoever views the app — a data-driven stored/DOM-based XSS.

This is a library-provided rendering sink that fails to neutralize output; it is triggered by ordinary, reasonable application code, not by an author mistake.

References

  • github.com/advisories/GHSA-2658-85cv-9wwq
  • github.com/mljar/mercury/commit/c798a85924e6614c6fea7afe5a560e4554a1d09b
  • github.com/mljar/mercury/releases/tag/v3.2.11
  • github.com/mljar/mercury/security/advisories/GHSA-2658-85cv-9wwq
  • nvd.nist.gov/vuln/detail/CVE-2026-111059

Code Behaviors & Features

Detect and mitigate CVE-2026-111059 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.0.0 before 3.2.11

Fixed versions

  • 3.2.11

Solution

Upgrade to version 3.2.11 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-116: Improper Encoding or Escaping of Output
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/mercury/CVE-2026-111059.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 20 Oct 2026 12:16:19 +0000.