Security mailing lists by PureSourceCode

GHSA-vccx-p757-pv6h

LOW

mo has a XSS via inline SVG script tags in Markdown rendering

Summary

When rendering Markdown files containing inline SVG elements with <script> tags, the embedded JavaScript is executed in the browser. This is due to rehype-raw passing raw HTML (including SVG) through to the DOM without sanitization.

PoC
<svg><script>alert(1)</script></svg>

Embedding the above in a Markdown file opened with mo causes the script to execute.

Impact

Arbitrary JavaScript execution in the context of the mo application when a user opens a malicious Markdown file. This could lead to data exfiltration of other opened Markdown file contents.

Remediation

Fixed by adding rehype-sanitize to the Markdown rendering pipeline, which strips dangerous elements such as <script> while preserving safe HTML.

Published
18 Mar 2026
Last modified
23 Mar 2026
Weakness
CWE-79
Also known as
GO-2026-4765
Sources
OSVJSONOSV GO-2026-4765JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go github.com/k1LoW/mo < 0.18.5 0.18.5

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Mar 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 18 Mar 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.