GHSA-vccx-p757-pv6h

Suggest an improvement
Source
https://github.com/advisories/GHSA-vccx-p757-pv6h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-vccx-p757-pv6h/GHSA-vccx-p757-pv6h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vccx-p757-pv6h
Aliases
Published
2026-03-18T20:17:12Z
Modified
2026-03-23T18:56:25Z
Severity
  • 2.3 (Low) CVSS_V4 - 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 CVSS Calculator
Summary
mo has a XSS via inline SVG script tags in Markdown rendering
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-79"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-03-18T20:17:12Z",
    "nvd_published_at": null,
    "severity": "LOW"
}
References

Affected packages

Go / github.com/k1LoW/mo

Package

Name
github.com/k1LoW/mo
View open source insights on deps.dev
Purl
pkg:golang/github.com/k1LoW/mo

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.18.5

Database specific

last_known_affected_version_range
"<= 0.18.4"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-vccx-p757-pv6h/GHSA-vccx-p757-pv6h.json"