Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious .sy.zip with scripted asset filename
-
DeliveryDeliver archive to victim for import
-
ExploitVictim opens protyle asset picker
-
ExecutionUnescaped filename executes via innerHTML
-
ImpactReach Node APIs for host code execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to import an attacker-supplied .sy.zip archive (importSYAssets copies files under assets/ to data/assets with their names unchanged) whose asset filename carries HTML/JS markup, and then to open the protyle asset picker - reachable via the asset slash-menu, the document-background asset button, or the Attribute View asset field - at which point renderAssetList assigns the unescaped hName through listElement.innerHTML. Full code execution (reaching Node APIs) additionally requires the SiYuan desktop/Electron main window, which runs with nodeIntegration:true, contextIsolation:false and the kernel page's Content-Security-Policy header deleted; in a hardened or non-Electron context the impact would be confined to in-page script. Limiting factors: attacker must socially engineer delivery of the archive, the victim must both import it and open an asset picker, and affected builds are SiYuan before 3.8.11 (confirmed v3.8.10 and v3.8.11-beta.3; fixed in v3.8.11). Note a sibling fix (GHSA-qcw6-qm34-28h8) escaped the same value in the Search→Assets panel, so that path is not affected. |
| Impact | Signals are mostly consistent toward high priority but with one important caveat. The CVSS 4.0 base score is 9.4 with vector AV:N/AC:L/AT:N/PR:L/UI:P and full High impact across vulnerable and subsequent systems, reflecting a stored XSS that escalates to host code execution because the SiYuan desktop (Electron) main window runs with nodeIntegration:true, contextIsolation:false and the kernel page's CSP header stripped. The vuln.today decision label is act_now and the finding was reported by VulnCheck, so urgency is elevated. However, this is NOT drive-by remote exploitation: the GHSA advisory makes clear the payload is delivered inside a .sy.zip archive the victim must import, and script only fires when the victim subsequently opens the protyle asset picker - i.e. multi-step user interaction plus social-engineering delivery are required, which argues for targeted rather than wormable/widespread exploitation. It is not on CISA KEV, so there is no confirmed active exploitation, and no EPSS probability was supplied in the input, so the statistical likelihood of exploitation cannot be stated here. Net: a genuinely critical-impact XSS-to-RCE whose act_now priority is justified by the severe outcome and public PoC, but whose real-world reach is gated by the need to trick a user into importing an attacker-supplied archive. Note also that the vendor vector's PR:L/UI:P choices are debatable for an attacker who only crafts a file (see assessed vector). |
| Exploit ScenarioDerived | An attacker crafts a SiYuan .sy.zip export containing an asset whose filename embeds HTML/JS (e.g. an <img onerror=...> payload) and sends it to a victim as a shareable notebook. When the victim imports it and later opens the asset picker (slash-menu, document-background button, or Attribute View asset field), renderAssetList injects the unescaped filename via innerHTML and the script runs; on the desktop Electron build it reaches Node APIs for arbitrary code execution. The GHSA advisory includes a detailed proof-of-concept measured against the official v3.8.10 and v3.8.11-beta.3 Linux releases, and AC:L indicates reliable, low-complexity triggering once the victim opens the picker. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 04, 2026
Stored cross-site scripting in SiYuan before 3.8.11 lets an attacker turn a crafted asset filename into script that executes inside the editor when the victim opens the protyle asset picker; on the desktop build the Electron main window runs with nodeIntegration:true, contextIsolation:false and the kernel page's Content-Security-Policy header removed, so the injected handler can reach Node APIs and escalate to code execution. The only prerequisites are social engineering - the victim must import an attacker-supplied .sy.zip archive whose assets/ entry carries HTML markup, then open the asset picker via the slash menu, the document background button or an Attribute View asset field. A working proof-of-concept, with repeated cold replays against the official v3.8.10 and v3.8.11-beta.3 Linux releases, is published in the GitHub advisory; no CISA KEV entry confirms active exploitation, and the vuln.today priority label is act_now.
RemediationAI
Vendor-released patch: SiYuan 3.8.11 - upgrade both the desktop application and the kernel package to v3.8.11 (or later); the fix escapes the hName value in the protyle asset picker's renderAssetList, mirroring the escapeHtml treatment already applied in the Search -> Assets panel. Because the delivery vector is a .sy.zip archive whose assets/ entries are copied in with names unchanged, treat .sy.zip imports from untrusted or unsolicited sources as hostile until the upgrade is in place; the trade-off is that blocking or quarantining such imports disrupts legitimate notebook sharing, so scope the restriction to external senders rather than disabling import outright. The escalation from in-page script to host code execution depends on the Electron main window configuration (nodeIntegration:true, contextIsolation:false, deleted CSP header in the kernel page), so running SiYuan in a context that does not expose Node APIs to the renderer - or keeping the browser-served build rather than the desktop client when handling untrusted content - confines any residual injection to in-page impact. Applying the 3.8.11 update is the complete fix; the earlier GHSA-qcw6-qm34-28h8 and GHSA-62qw-cq6m-mrh6 patches do not remediate this renderer.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a classic CWE-79 output-encoding failure at a single DOM sink. In app/src/menus/protyle.ts, renderAssetList builds result rows from ${item.hName} and assigns them with listElement.innerHTML, and hName is served verbatim by /api/search/searchAsset (kernel/cache/asset.go, HName: util.RemoveID(d.Name())), i.e. the raw asset filename. The filename is attacker-controlled because a .sy.zip import copies every file under the archive's assets/ directory into data/assets without renaming it (kernel/model/import.go, importSYAssets). This render site is a sibling of, but distinct from, the location fixed in GHSA-qcw6-qm34-28h8, which applied escapeHtml to the Search -> Assets panel (app/src/search/assetsResult.ts) and leaves the protyle picker unescaped, and also distinct from GHSA-62qw-cq6m-mrh6, which fixed the transactions push handler. The severity comes from the desktop containment boundary: app/electron/window/windowPreferences.ts enables nodeIntegration:true with contextIsolation:false and app/electron/remote/sessionHeaders.ts deletes the kernel page's Content-Security-Policy header, so a handler such as an <img onerror> that fires in the picker is not sandboxed from Node APIs. In a non-Electron or hardened context the same injection would be confined to in-page script.
Know when Siyuan gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Attacker only crafts the import file (PR:N); victim must import and open the picker (UI:R); XSS escapes the renderer to Node (S:C) for full host RCE (C/I/A:H).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan before 3.8.11 contains a stored cross-site scripting vulnerability in the protyle asset picker's renderAssetList, which inserts unescaped asset filenames via innerHTML. Attackers can supply a .sy.zip import with a malicious filename that runs script when the victim opens the asset picker, reaching Node APIs for code execution.
Technical POC Analysis
Stored XSS, CWE-79, in app/src/menus/protyle.ts, function renderAssetList.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-145039 is a critical vulnerability in SiYuan (a note-taking and knowledge management application) that could let an attacker execute code on a victim's machine when they open a maliciously crafted .sy.zip archive and interact with the asset picker. This impacts any employee using SiYuan, risking unauthorized access to sensitive data and systems, but requires user action (importing and opening the archive).
No vendor-released patch identified at time of analysis. Interim mitigations: prohibit importing .sy.zip archives from untrusted sources; restrict SiYuan usage to trusted documents only; implement application allowlisting to prevent unauthorized code execution; and monitor for anomalous process creation from SiYuan.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role
Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a
SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements
Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,
SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c
A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti
SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex
Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package
Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro
EUVD-2026-144335
NVD
CVE.org
Vulnrichment
GitHub
VulDB
Exploit-DB