Skip to main content

SiYuan CVE-2026-145039

| EUVDEUVD-2026-144335 CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-12-04 VulnCheck
9.4
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious .sy.zip with scripted asset filename
  2. Delivery
    Deliver archive to victim for import
  3. Exploit
    Victim opens protyle asset picker
  4. Execution
    Unescaped filename executes via innerHTML
  5. Impact
    Reach 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

SiYuan 3.8.11-beta.3 <3.8.11
SiYuan 3.8.10 <3.8.11

Affected Packages

euvd siyuan fix: 3.8.11

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

Vendor (VulnCheck) PRIMARY 9.4 CRITICAL
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
vuln.today AI 9.6 CRITICAL

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).

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
Patch available
Dec 04, 2026 - 17:18 EUVD
CVE Published
Dec 04, 2026 - 16:10 cve.org
CRITICAL 9.4

DescriptionCVE.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

Why It Matters

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).

Business Impact: High
Compensating Controls

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

Prevalence
Low
niche open-source personal note-taking app, limited enterprise deployment footprint
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org Vulnrichment GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +47
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Siyuan

View all
CVE-2026-69083 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role

CVE-2026-54067 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a

CVE-2026-69084 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements

CVE-2026-54158 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,

CVE-2026-69085 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr

CVE-2024-53504 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c

CVE-2024-53507 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t

CVE-2024-53506 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R

CVE-2024-53505 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti

CVE-2026-23852 CRITICAL POC
9.6 Jan 19

SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex

CVE-2026-56397 CRITICAL POC
9.4 Jun 21

Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package

CVE-2026-54069 CRITICAL POC
9.2 Jun 24

Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy