Sceawere
Vulnerability Detail
CVE-2026-92985UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV
SiYuan Cross-Site Scripting RCE
Vulnerability Metadata
- Severity
- High
- Score / CVSS
- 8.8
- Creation Date
- 1d ago
- Vendor
- siyuan-note
- Product
- siyuan
- Attack Type
- Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack Complexity
- LOW
Narrative and Response
Description
SiYuan versions before 3.8.4 fail to escape bookmark labels imported from notebook files when rendering them in the dock tree. Attackers can craft malicious .sy notebook files with unescaped HTML in bookmark attributes that execute scripts in the Electron renderer with access to child_process for command execution.
Executive Summary
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Technical Details
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Mitigations
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
References
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Additional Metadata
{
"score": "8.8",
"pubDate": "2026-09-17T15:17:01.840Z",
"pubdate": "2026-09-17T15:17:01.840Z",
"executiveSummary": "SiYuan versions prior to 3.8.4 are susceptible to a Cross-Site Scripting (XSS) vulnerability stemming from improper input sanitization of bookmark labels within imported notebook files.\nThe vulnerability allows an attacker to inject malicious HTML/JavaScript into the application's dock tree rendering process.\nDue to the underlying Electron framework architecture, successfully executed scripts gain access to the Node.js integration, specifically the 'child_process' module.\nThis creates a critical Remote Code Execution (RCE) vector, enabling the attacker to execute arbitrary system commands with the privileges of the SiYuan application process.\nExploitation requires a user to import a maliciously crafted .sy notebook file, making this a client-side execution vulnerability that circumvents standard security boundaries.\nThe risk is severe as it permits full system compromise, data exfiltration, or the installation of persistent malicious payloads on the host machine.",
"technicalDetails": "The vulnerability exists within the rendering logic of the SiYuan dock tree component, which fails to adequately sanitize or escape bookmark label attributes extracted from imported .sy notebook files.\nWhen a user imports a specially crafted notebook file, the application parses the file structure and reflects bookmark metadata into the Document Object Model (DOM) of the Electron-based renderer process.\nThe root cause is a lack of output encoding/sanitization during the dynamic generation of UI elements, allowing for the injection of arbitrary HTML tags, including <script> elements and event handlers (e.g., onload, onerror).\nBecause the application is built using Electron, the renderer process environment frequently maintains Node.js integration, granting access to privileged modules such as 'child_process'.\nThe attack flow begins with the creation of a .sy notebook file where the bookmark label field contains an obfuscated JavaScript payload designed to leverage Node.js APIs.\nUpon importing the file, the SiYuan application renders the malicious label; the JavaScript payload executes within the context of the renderer process.\nThe attacker utilizes the context to invoke 'require('child_process').execSync()' or similar methods to spawn shell commands, providing a direct bridge from a browser-based XSS vulnerability to OS-level code execution.\nThis vulnerability does not require authentication or network exposure to trigger, as the malicious payload is embedded directly into the application data file, which the target user must manually or automatically import.\nThe scope of the impact is limited only by the permissions of the user account running the SiYuan application, allowing for potential lateral movement, persistence via startup scripts, or exfiltration of the local user's data vault."
}