GHSA-vccx-p757-pv6h: Github.com/k1LoW/mo Cross-Site Scripting Vulnerability
LOWGHSA-vccx-p757-pv6h is a LOW cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Github.com/k1LoW/mo libraries in the Go ecosystem. The issue involves mo has a xss via inline svg script tags in markdown rendering. Remediation is available by upgrading affected packages to version 0.18.5.
GHSA-vccx-p757-pv6h at a Glance
How to Fix GHSA-vccx-p757-pv6h
To remediate this vulnerability, upgrade all affected Github.com/k1LoW/mo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/k1LoW/mo to 0.18.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/k1LoW/mo
How to Check if You Are Affected
To determine whether your application is affected by GHSA-vccx-p757-pv6h, inspect your project dependencies for Github.com/k1LoW/mo:
inspect dependencies for github.com/k1LoW/mo
Analyze the terminal output to locate any version of Github.com/k1LoW/mo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.18.5), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Github.com/k1LoW/mo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-vccx-p757-pv6h Affected Github.com/k1LoW/mo Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/k1LoW/mo
|
Go |
< 0.18.5
|
0.18.5
|
References
Frequently Asked Questions
What is GHSA-vccx-p757-pv6h?
Which Github.com/k1LoW/mo versions are affected?
What version fixes GHSA-vccx-p757-pv6h?
Is github.com/k1LoW/mo affected?
What CWE is associated with GHSA-vccx-p757-pv6h?
How can I check Go dependencies for GHSA-vccx-p757-pv6h?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vccx-p757-pv6h",
"modified" : "2026-03-18T20:17:12Z",
"published" : "2026-03-18T20:17:12Z",
"aliases" : [ ],
"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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/k1LoW/mo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.18.5"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.18.4"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/k1LoW/mo/security/advisories/GHSA-vccx-p757-pv6h"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/k1LoW/mo"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-18T20:17:12Z",
"nvd_published_at" : null
}
}