{"id":"CVE-2026-56397","title":"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","summary":"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 bro…","severity":"critical","cvss":9.6,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","cwe":["CWE-79"],"vendor":"SiYuan","product":"SiYuan","affected":["SiYuan < 3.6.1"],"published":"2026-06-21","updated":"2026-10-08","sourceUpdated":"2026-10-08T16:17:22.237","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-56397","references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-v3mg-9v85-fcm7","label":"disclosure@vulncheck.com"},{"url":"https://www.vulncheck.com/advisories/siyuan-remote-code-execution-via-malicious-bazaar-package-metadata-and-readme-2","label":"disclosure@vulncheck.com"},{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-v3mg-9v85-fcm7","label":"134c704f-9b21-4f2e-91b3-4a467353bcc0"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56397"},{"url":"https://github.com/advisories/GHSA-v3mg-9v85-fcm7"}],"tags":["nvd","cve.org","exploit-available","ghsa","go"],"exploitAvailable":true,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-06-24T15:35:29.612043Z"},"epss":0.00496,"epssPercentile":0.42367,"aliases":["GHSA-v3mg-9v85-fcm7"],"ecosystem":"go","ingestedAt":"2026-09-14T19:13:23.465Z","slug":"CVE-2026-56397","body":"## Overview\n\nSiYuan 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Package advisory (CVE-2026-56397)\n\nAffected packages:\n\n- `github.com/siyuan-note/siyuan/kernel <= 0.0.0-20260313024916-fd6526133bb3`\n\nSource: https://github.com/advisories/GHSA-v3mg-9v85-fcm7","depth":"abyssal","depthScore":65,"depthScoreParts":{"impact":52.8,"likelihood":0.1,"exploitation":12,"ransomware":0},"changes":[{"seq":218121,"id":"CVE-2026-56397","ts":1791478408665,"field":"exploit_available","old":"false","new":"true"},{"seq":218120,"id":"CVE-2026-56397","ts":1791478408665,"field":"cvss","old":null,"new":"9.6"},{"seq":218119,"id":"CVE-2026-56397","ts":1791478408665,"field":"severity","old":"medium","new":"critical"}]}