{"schemaVersion":3,"id":"CVE-2026-111059","aliases":["GHSA-2658-85cv-9wwq"],"status":"published","duplicateOf":null,"title":null,"description":"Mercury is a Python framework for sharing Jupyter notebooks as web applications and dashboards. From 3.0.0 until 3.2.11, mr.Markdown converts attacker-controlled Markdown to HTML without sanitizing raw HTML before assigning it to an ipywidgets.HTML sink. Event-handler attributes and other active HTML can therefore reach the DOM and execute when another user views the application. This issue is fixed in version 3.2.11.","dates":{"published":"2026-10-19T16:11:29.745Z","modified":"2026-10-20T16:11:40.067Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.1,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true}]},"epss":{"probability":0.00284,"percentile":0.19754,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-10-20T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00284,"percentile":0.19754}],"last30":[{"date":"2026-10-20T00:00:00.000Z","score":0.00284,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00284,"percentile":0.19754}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output","description":"The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/116.html"}],"affected":[{"vendor":"mljar","product":"mercury","name":"mercury","label":"mercury","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.0.0, < 3.2.11","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0, < 3.2.11","eol":null,"hubHref":"/vendor/mljar/mercury"},{"vendor":"PyPI","product":"mercury","name":"mercury","label":"mercury","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/mercury","purlType":"pypi","versions":[{"text":"≥ 3.0.0, < 3.2.11","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0, < 3.2.11","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/mljar/mercury/security/advisories/GHSA-2658-85cv-9wwq","label":"github.com/mljar/mercury/security/advisories/GHSA-2658-85cv-9wwq","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/mljar/mercury/commit/c798a85924e6614c6fea7afe5a560e4554a1d09b","label":"github.com/mljar/mercury/commit/c798a85924e6614c6fea7afe5a560e4554a1d09b","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/mljar/mercury/releases/tag/v3.2.11","label":"github.com/mljar/mercury/releases/tag/v3.2.11","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/mljar/mercury","label":"github.com/mljar/mercury","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-19T16:11:29.745Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-20T16:11:40.067Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":24,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T22:30:23.008Z","stale":false,"partial":false}}