Description
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('child_process') 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.
Published: 2026-08-19
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SiYuan Note before version 3.7.4 accepts document metadata fields such as bookmark, alias, memo, and an alternate name without proper escaping, allowing a malicious user to embed a double quote that breaks out of an aria‑label attribute. The injected code can contain inline event handlers like onmouseover, which, when a victim simply hovers over the entry in a move or link dialog, executes JavaScript in the renderer process. Because the application is built with Electron configured for nodeIntegration:true, contextIsolation:false, and without a content security policy, the injected handler can call require('child_process') and run arbitrary operating‑system commands, elevating the XSS to a full remote code execution vulnerability.

Affected Systems

All SiYuan builds released before 3.7.4, including the default Electron configuration with nodeIntegration enabled and no content‑security policy. Any instance that uses the move or link to dialog for selecting a file path is susceptible, regardless of the operating system on which SiYuan runs.

Risk and Exploitability

The vulnerability carries a CVSS score of 9.3, indicating critical severity, and is not listed in CISA’s Known Exploited Vulnerabilities catalog. The EPSS score is < 1%, indicating a very low but nonzero likelihood of exploitation, but the flaw can be leveraged with minimal effort by sharing a malicious document via sync, import or direct sharing. An attacker only needs to place a document with problematic metadata in a shared folder; any user who opens a file‑selection dialog that reveals this entry will trigger the exploit simply by hovering. The high severity and the ease of trigger make this a high‑risk vulnerability for organizations that use SiYuan to manage documents.

Generated by OpenCVE AI on August 20, 2026 at 15:58 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to SiYuan v3.7.4 or later
  • Limit or revoke sharing permissions for existing documents to reduce exposure to malicious content
  • Sanitize document metadata by removing or escaping double quotes in bookmark, alias, memo, and alternate name fields before sharing or importing

Generated by OpenCVE AI on August 20, 2026 at 15:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 20 Aug 2026 09:30:00 +0000

Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan

Wed, 19 Aug 2026 14:15:00 +0000

Type Values Removed Values Added
Description 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('child_process') 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.
Title SiYuan before v3.7.4 XSS-to-RCE via pathName.ts
First Time appeared B3log
B3log siyuan
Weaknesses CWE-79
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-20T17:23:11.359Z

Reserved: 2026-08-18T15:05:54.226Z

Link: CVE-2026-75917

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-08-19T14:17:41.840

Modified: 2026-08-26T17:07:30.163

Link: CVE-2026-75917

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T16:00:05Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')