{"answers":{"affected":"3 open source packages ship an affected version, including github.com/k1LoW/mo.","exploited":"There is no known exploitation of GHSA-vccx-p757-pv6h in the wild and no public exploit code.","fix":"Upgrade github.com/k1LoW/mo to 0.18.5 or later.","what":"GHSA-vccx-p757-pv6h is a cross-site scripting vulnerability in github.com/k1LoW/mo, published on 18 Mar 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-vccx-p757-pv6h and fix it if it is affected.\n\nWhat it is: GHSA-vccx-p757-pv6h is a cross-site scripting vulnerability in github.com/k1LoW/mo, published on 18 Mar 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-vccx-p757-pv6h in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/k1LoW/mo (Go): affected all versions; fixed in 0.18.5\n- github.com/k1LoW/mo (Go): affected all versions; fixed in 0.18.5\n- github.com/k1LoW/mo (Go): affected all versions; fixed in 0.18.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-vccx-p757-pv6h/ (Markdown: https://insights.sbomify.com/GHSA-vccx-p757-pv6h/index.md)","id":"GHSA-vccx-p757-pv6h","markdown":"https://insights.sbomify.com/GHSA-vccx-p757-pv6h/index.md","name":"GHSA-vccx-p757-pv6h","record":{"aliases":["GO-2026-4765"],"analysis":{"component_type":"desktop_application","fix_type":"patch","impacts":["code_execution","data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Markdown viewer","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript and exfiltrate data by tricking users into opening malicious Markdown files with inline SVG scripts.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Summary\n\nWhen rendering Markdown files containing inline SVG elements with `\u003cscript\u003e` 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\u003csvg\u003e\u003cscript\u003ealert(1)\u003c/script\u003e\u003c/svg\u003e\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 `\u003cscript\u003e` while preserving safe HTML.","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"mo has a XSS via inline SVG script tags in Markdown rendering","id":"GHSA-vccx-p757-pv6h","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["0.18.5"],"introduced":["0"],"last_affected":[],"package":"github.com/k1LoW/mo","purl":null,"source":"GHSA-vccx-p757-pv6h"},{"ecosystem":"Go","fixed":["0.18.5"],"introduced":["0"],"last_affected":[],"package":"github.com/k1LoW/mo","purl":"pkg:golang/github.com/k1LoW/mo","source":"GHSA-vccx-p757-pv6h"},{"ecosystem":"Go","fixed":["0.18.5"],"introduced":["0"],"last_affected":[],"package":"github.com/k1LoW/mo","purl":"pkg:golang/github.com/k1LoW/mo","source":"GO-2026-4765"}],"products":null,"published":"2026-03-18","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can execute arbitrary JavaScript and exfiltrate data by tricking users into opening malicious Markdown files with inline SVG scripts.","url":"https://insights.sbomify.com/GHSA-vccx-p757-pv6h/"}