{"items":[{"id":"NVI-00011995","kind":"vulnerability","title":"Mercury: Stored / DOM Cross-Site Scripting (XSS): mr.Markdown renders untrusted content as raw, unsanitized HTML","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-2658-85cv-9wwq","CVE-2026-111059"],"plain_summary":"GitHub lists this reviewed advisory for mercury. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-69d65332919b3f2a38721dacd43c22ed"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-10-19T17:01:22.000Z","value":"6.1 medium","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-7dcb2ab9caacdd88bac37621110d7783"},{"kind":"EPSS","as_of":"2026-10-31T12:00:27.000Z","value":"0.284%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.20933. Missing scores are unknown.","source_id":"sr-69d65332919b3f2a38721dacd43c22ed"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-7dcb2ab9caacdd88bac37621110d7783","url":"https://github.com/advisories/GHSA-2658-85cv-9wwq","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-2658-85cv-9wwq","publisher":"GitHub Advisory Database","observed_at":"2026-10-31T23:14:14.588Z"},{"id":"sr-69d65332919b3f2a38721dacd43c22ed","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2026-111059","publisher":"FIRST EPSS","observed_at":"2026-11-01T01:39:43.066Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-7dcb2ab9caacdd88bac37621110d7783"],"technology":"mercury","known_exclusions":[],"conditions_summary":"## Summary\n\nMercury turns Jupyter notebooks into shared web apps/dashboards. The `mr.Markdown`\nwidget converts its input to HTML with **python-markdown and no sanitization\nstep**. `MarkdownWidget` is an `ipywidgets.HTML` widget, whose value is written to\nthe page as **raw HTML (via `innerHTML`) with no sanitization**, so the result\nreaches the DOM verbatim. When an app passes **untrusted data** (database rows,\nuser submissions, uploaded file contents, or an external/LLM API response) to\n`mr.Markdown`, HTML/JS in that data executes in the browser of **whoever views the\napp** — a data-driven stored/DOM-based XSS.\n\nThis is a library-provided rendering sink that fails to neutralize output; it is\ntriggered by ordinary, reasonable application code, not by an author mistake.\n\n## Root cause\n\n`mercury/md.py` — `MarkdownWidget._to_html()` (verified at v3.2.6, lines ~57–65):\n\n```python\ndef _to_html(self, text: str) -> str:\n    if md_lib is not None:\n        body = md_lib.markdown(text)          # python-markdown: passes raw HTML through\n    else:\n        body = f\"{escape(text)}\"   # escape() is ONLY the md-lib-absent fallback\n    return self._apply_inline_theme(body)     # regex st","public_affected_ranges":[">= 3.0.0, < 3.2.11"]}],"null_published_at":"2026-11-01T22:58:19.139Z","source_updated_at":"2026-10-19T17:01:22.000Z","source_disclosed_at":"2026-10-19T17:01:20.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Dated EPSS estimate updated; this is not a new disclosure or proof of exploitation.","null_first_observed_at":"2026-10-31T23:14:14.588Z"},{"id":"NVI-00011995","kind":"vulnerability","title":"Mercury: Stored / DOM Cross-Site Scripting (XSS): mr.Markdown renders untrusted content as raw, unsanitized HTML","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-2658-85cv-9wwq","CVE-2026-111059"],"plain_summary":"GitHub lists this reviewed advisory for mercury. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-7dcb2ab9caacdd88bac37621110d7783"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-10-19T17:01:22.000Z","value":"6.1 medium","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-7dcb2ab9caacdd88bac37621110d7783"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-7dcb2ab9caacdd88bac37621110d7783","url":"https://github.com/advisories/GHSA-2658-85cv-9wwq","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-2658-85cv-9wwq","publisher":"GitHub Advisory Database","observed_at":"2026-10-31T23:14:14.588Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-7dcb2ab9caacdd88bac37621110d7783"],"technology":"mercury","known_exclusions":[],"conditions_summary":"## Summary\n\nMercury turns Jupyter notebooks into shared web apps/dashboards. The `mr.Markdown`\nwidget converts its input to HTML with **python-markdown and no sanitization\nstep**. `MarkdownWidget` is an `ipywidgets.HTML` widget, whose value is written to\nthe page as **raw HTML (via `innerHTML`) with no sanitization**, so the result\nreaches the DOM verbatim. When an app passes **untrusted data** (database rows,\nuser submissions, uploaded file contents, or an external/LLM API response) to\n`mr.Markdown`, HTML/JS in that data executes in the browser of **whoever views the\napp** — a data-driven stored/DOM-based XSS.\n\nThis is a library-provided rendering sink that fails to neutralize output; it is\ntriggered by ordinary, reasonable application code, not by an author mistake.\n\n## Root cause\n\n`mercury/md.py` — `MarkdownWidget._to_html()` (verified at v3.2.6, lines ~57–65):\n\n```python\ndef _to_html(self, text: str) -> str:\n    if md_lib is not None:\n        body = md_lib.markdown(text)          # python-markdown: passes raw HTML through\n    else:\n        body = f\"{escape(text)}\"   # escape() is ONLY the md-lib-absent fallback\n    return self._apply_inline_theme(body)     # regex st","public_affected_ranges":[">= 3.0.0, < 3.2.11"]}],"null_published_at":"2026-11-01T01:03:56.620Z","source_updated_at":"2026-10-19T17:01:22.000Z","source_disclosed_at":"2026-10-19T17:01:20.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-10-31T23:14:14.588Z"}],"next_cursor":null,"snapshot_revision":"42594"}