CVE-2026-75917: SiYuan before v3.7.4 XSS-to-RCE via pathName.ts

Published Aug 19, 2026
·
Updated

SiYuan before v3.7.4 contains a cross-site scripting vulnerability in the file-tree picker's hover-tooltip generation (app/src/util/pathName.ts, getLeaf()/movePathTo()) used by the 'move/link to' path-selection dialogs, where document metadata fields (bookmark, alias, memo, and an alternate name field) are concatenated into the aria-label HTML attribute without escaping. A document crafted with a double quote in any of these fields breaks out of the attribute context and injects arbitrary HTML attributes including inline event handlers (e.g., onmouseover). Because every SiYuan Electron BrowserWindow runs with nodeIntegration:true, contextIsolation:false, and no CSP, the injected handler gains require('childprocess') access, escalating the XSS to arbitrary OS command execution when a victim merely hovers over the malicious document entry in the path-picker dialog. Malicious documents reach victims via sharing, sync, or import.

Affected Software

1 affected component
SiYuan SiYuan<3.7.4

Event History

Aug 19, 2026
CVE Published
via MITRE·02:01 PM
Data Sourced
via MITRE·02:01 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which users are exposed to exploitation?

Users are exposed when they open a “move/link to” path-selection dialog containing a malicious document and hover over that document’s entry. Malicious documents can arrive through sharing, synchronization, or import.

2

What must an attacker do to trigger command execution?

An attacker must craft a document whose bookmark, alias, memo, or alternate name field contains a double quote that escapes the tooltip aria-label attribute and injects an inline event handler. The victim must then hover over the malicious document in the path-picker dialog.

3

Is this limited to a non-default Electron configuration?

No. The vulnerable Electron BrowserWindows are described as running with nodeIntegration enabled, contextIsolation disabled, and no CSP. These conditions allow the injected JavaScript to access child_process and execute operating-system commands.

4

How can exposure be reduced before updating?

Avoid importing, syncing, or opening untrusted shared documents, particularly in “move/link to” dialogs. Do not hover over suspicious document entries in those dialogs until the installation is updated.

5

How can I determine whether an installation is affected?

SiYuan versions before v3.7.4 are affected. Documents with double quotes in bookmark, alias, memo, or alternate name metadata may be capable of triggering the issue when displayed in the affected path-picker tooltip.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203