{"id":"GHSA-vccx-p757-pv6h","aliases":["GO-2026-4765"],"url":"https://o3.security/vulnerability/GHSA-vccx-p757-pv6h","summary":"mo has a XSS via inline SVG script tags in Markdown rendering","details":"### Summary\n\nWhen 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.\n\n### PoC\n\n```html\n<svg><script>alert(1)</script></svg>\n```\n\nEmbedding the above in a Markdown file opened with mo causes the script to execute.\n\n### Impact\n\nArbitrary 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.\n\n### Remediation\n\nFixed by adding `rehype-sanitize` to the Markdown rendering pipeline, which strips dangerous elements such as `<script>` while preserving safe HTML.","published":"2026-03-18T20:17:12Z","modified":"2026-03-23T18:56:25.781957Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/k1LoW/mo","fixedVersion":"0.18.5"}],"fix":null,"references":[{"type":"WEB","url":"https://github.com/k1LoW/mo/security/advisories/GHSA-vccx-p757-pv6h"},{"type":"PACKAGE","url":"https://github.com/k1LoW/mo"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-03-23T18:56:25.781957Z"}}