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

- 種別: advisory
- 重大度: medium
- 関連技術: python
- CVE: CVE-2026-111059
- 公開日時: 2026-10-19T17:01:20.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-2658-85cv-9wwq)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-2658-85cv-9wwq

影響: pip:mercury >= 3.0.0, < 3.2.11 → 3.2.11
Summary 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 da…