{"cve":"CVE-2026-56397","nvd":{"published":"2026-06-21T14:16:26.783","modified":"2026-10-08T16:17:22.237","status":"Deferred","description":"SiYuan before v3.6.1 fails to sanitize package metadata and README content in the Bazaar marketplace, allowing malicious package authors to inject arbitrary HTML and JavaScript. Attackers can achieve remote code execution on any user browsing the Bazaar by embedding XSS payloads in package displayName, description, or README fields, exploiting Electron's nodeIntegration setting to execute OS commands.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","score":9.4},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6},"cwes":["CWE-79"],"references":["https://github.com/siyuan-note/siyuan/security/advisories/GHSA-v3mg-9v85-fcm7","https://www.vulncheck.com/advisories/siyuan-remote-code-execution-via-malicious-bazaar-package-metadata-and-readme-2","https://github.com/siyuan-note/siyuan/security/advisories/GHSA-v3mg-9v85-fcm7"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:39:28.638635428+00:00"},"epss":{"cve":"CVE-2026-56397","score":0.00496,"percentile":0.4228,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-v3mg-9v85-fcm7","url":"https://osv.dev/vulnerability/GHSA-v3mg-9v85-fcm7","summary":"SiYuan Vulnerable to Remote Code Execution via Malicious Bazaar Package — Marketplace XSS","modified":"2026-09-14T18:27:20.294445591Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":["<=0.0.0-20260313024916-fd6526133bb3"],"fixed":[]}]},{"id":"GO-2026-4720","url":"https://osv.dev/vulnerability/GO-2026-4720","summary":"SiYuan vulnerable to remote code execution via marketplace XSS in github.com/siyuan-note/siyuan/kernel","modified":"2026-08-19T15:57:12.573096609Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":["<0.0.0-20260317012524-fe4523fff2c8"],"fixed":["0.0.0-20260317012524-fe4523fff2c8"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}