XSS in Siyuan-Note Siyuan
CVE-2026-100639
SiYuan v3.8.3 fails to HTML-escape the data-subtype attribute when generating gutter-button markup (app/src/protyle/gutter/button.ts, assigned via innerHTML in app/src/protyle/gutter/index.ts) from content pasted as plain-text Markdown containing a Kramdown inline attribute list (IAL). Because the shared Lute renderer parses Kramdown IAL from text/plain input, an attacker-supplied Markdown snippet using entity-encoded quotes in data-subtype breaks out of the attribute value when the gutter markup is re-parsed by the browser, injecting additional attributes such as autofocus and onfocus. If a victim pastes the crafted Markdown and the affected gutter control receives focus, the injected handler executes; in the Electron desktop application, where the main BrowserWindow enables Node integration and disables context isolation, this results in JavaScript execution with renderer Node.js privileges (remote code execution). Fixed in v3.8.4.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
Weakness classification (CWE)
References
- github.com/siyuan-note/siyuan/security/advisories/GHSA-2cmm-9x9j-rvff (vendor-advisory)
- www.vulncheck.com/advisories/siyuan-before-3.8.4-cross-site-scripting-via-kramd… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-100639?
- CVE-2026-100639 is a high-severity vulnerability in Siyuan-Note Siyuan, classified under Cross-site Scripting. CVSS score: 8.8/10. Published 2026-09-26.
- How severe is CVE-2026-100639?
- High severity. CVSS v3 base score is 8.8 out of 10.