CVE-2026-100639
Last modified
CVE-2026-100639 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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.
Description
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.
Metrics
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-100639?
How severe is CVE-2026-100639?
How do I fix CVE-2026-100639?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-100633SiYuan is a self-hosted personal knowledge management system…6.5
- CVE-2026-100634SiYuan before v3.8.4 does not validate the sender or restric…4.7
- CVE-2026-100635SiYuan before v3.8.4 contains an authentication bypass vulne…5.9
- CVE-2026-100636SiYuan versions before v3.8.4 contain a path traversal vulne…7.6
- CVE-2026-100637SiYuan versions before v3.8.4 contain a path traversal vulne…7.6
- CVE-2026-100638SiYuan versions before v3.8.4 contain a path traversal vulne…7.6
- CVE-2026-10064A security flaw has been discovered in TRENDnet TEW-432BRP 3…9.8
- CVE-2026-100640SiYuan before v3.8.4 contains an authorization omission in t…4.7
- CVE-2026-100641SiYuan before v3.8.4 does not HTML-escape stored flashcard b…8
- CVE-2026-100642SiYuan versions from v2.1.0 before v3.8.4 contain a cross-si…7.6
- CVE-2026-100643SiYuan versions before v3.8.4 fail to properly escape four s…8
- CVE-2026-100644SiYuan before v3.8.4 contains a SQL injection vulnerability …7.5
Are you affected by CVE-2026-100639?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
