lowVulnerability

GHSA-vccx-p757-pv6h

### 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 ```html <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.

Properties

ghsa_id
GHSA-vccx-p757-pv6h
severity
low
summary
mo has a XSS via inline SVG script tags in Markdown rendering
cve_id
GHSA-vccx-p757-pv6h
is_ghsa_only
true
ghsa_published
2026-03-18T20:17:12Z
source_url
https://github.com/advisories/GHSA-vccx-p757-pv6h
ghsa_updated
2026-03-18T20:17:12Z

Related Entities (3)

AFFECTS (1)

[Software]go/github.com/k1LoW/mo

HAS_WEAKNESS (1)

[Weakness]Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

REPORTED_BY (1)

[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph

GHSA-vccx-p757-pv6h — Ninja Signal Threat Intelligence | Ninja Signal