Skip to content
MediumVulnerability

GHSA-2658-85cv-9wwq: Mercury: Stored / DOM Cross-Site Scripting (XSS): mr.Markdown renders untrusted content as raw, unsanitized HTML

Published
Record updated
View JSON
Affected
  • mercury >= 3.0.0, < 3.2.11
Fixed in
3.2.11
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.

Summary

Mercury's mr.Markdown widget converts input with python-markdown and no sanitization, and MarkdownWidget writes the result to the DOM via innerHTML without sanitization. When an app passes untrusted data to mr.Markdown, HTML or JavaScript in that data executes in the browser of whoever views the app, a stored or DOM-based XSS.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.