Skip to main content

SiYuan EUVDEUVD-2026-128756

| CVE-2026-130682 CRITICAL
Code Injection (CWE-94)
2026-11-18 VulnCheck GHSA-rj95-hhvp-q9jp
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 entity-encoded malicious table caption
  2. Delivery
    Deliver via import or synced notebook
  3. Exploit
    Victim previews note in Electron client
  4. Execution
    onerror fires in nodeIntegration context
  5. Impact
    Execute OS commands via require('child_process')

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

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 attacker to get a malicious table caption into the victim's workspace through an import or sync action (e.g., a shared or synced notebook, or a crafted .sy file), and requires the victim to then preview/render that document. Full remote code execution additionally requires the victim to be using the SiYuan Electron desktop client, where the local-kernel preview response is assigned to previewElement.innerHTML with no DOMPurify inside a window running nodeIntegration:true, contextIsolation:false, webSecurity:false - granting the injected onerror handler require() access. Limiting factors: this is not direct unsolicited network exploitation - the attacker must deliver content via import/sync, the victim must preview it (UI interaction), and the RCE sink is specific to the Electron desktop configuration on affected versions (<= v3.8.9); non-Electron rendering paths are constrained to stored XSS. Affected package: siyuan-note/siyuan, fixed in v3.8.10.

Impact

Multiple signals converge on genuine high priority. The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, VC/VI/VA:H, SC/SI/SA:H, score 9.4) indicates a network-reachable, low-complexity, unauthenticated flaw that requires only passive user interaction and yields full impact plus a subsequent-system (scope) change - consistent with stored XSS escalating to OS-level RCE. The vuln.today decision label is act_now and the issue was reported by VulnCheck, reinforcing urgency. A detailed, self-contained reproduction script is published in the vendor GHSA advisory, so working exploit knowledge is public. Tempering factors: there is NO CISA KEV listing (no confirmed active exploitation) and NO EPSS score in the input, so widespread opportunistic exploitation is not demonstrated - the realistic threat is targeted delivery of malicious content into a victim's workspace. Critically, the RCE outcome is confirmed only for the Electron desktop client (nodeIntegration:true, contextIsolation:false, webSecurity:false, no DOMPurify on the local-kernel preview path); non-Electron/browser usage is limited to stored XSS. Overall this is a real priority driven by RCE impact and a public PoC, not a high-CVSS-but-low-risk issue, but its spread depends on the attacker getting content into the target via import or sync rather than direct unsolicited network exploitation.

Exploit ScenarioDerived

An attacker crafts a document whose table block carries an entity-encoded caption such as '&lt;img src=x onerror=...&gt;' and delivers it into the victim's workspace via an imported file or a synced/shared notebook. When the victim previews that note in SiYuan's Electron desktop client, the kernel entity-unescapes the caption and emits it as live HTML, which the frontend assigns directly to innerHTML with no DOMPurify, firing the onerror handler inside a nodeIntegration window and executing arbitrary OS commands through require('child_process'). A full step-by-step reproduction script (including the command-execution proof) is published in the GHSA advisory.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.7% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 18, 2026

Stored cross-site scripting in SiYuan Note through 3.8.9 escalates to remote code execution when a crafted table caption is imported or synced into a workspace and then previewed in the Electron desktop client, which runs with nodeIntegration enabled and renders the local-kernel preview response straight into innerHTML without DOMPurify. Delivery is not direct network exploitation: a remote, unauthenticated attacker (PR:N per the assessed CVSS vector) must get a malicious .sy document or synced notebook into the victim's workspace, and the victim must open the preview (UI:R), after which the injected onerror handler gains require() access and can run OS commands - non-Electron rendering paths are limited to stored XSS. A detailed, verifiable proof-of-concept is published in the project's GHSA advisory; active exploitation in the wild is not confirmed, and the vendor addresses the flaw in SiYuan v3.8.10.

RemediationAI

Upgrade SiYuan to v3.8.10 or later - the advisory lists v3.8.10 as the fixed release for siyuan-note/siyuan and confirms all versions through v3.8.9 are vulnerable; details are at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-v92g-4rrc-c6wv. Until the upgrade is applied, the exposure path described in the assessment is content ingestion plus preview, so the practical interim control is to avoid importing .sy packages or syncing notebooks from untrusted or shared sources, and to avoid previewing documents of unknown provenance, which removes the trigger but leaves the vulnerable parser and renderer in place with no vendor-supported mitigation. Because the RCE sink is specific to the Electron desktop client (nodeIntegration: true, contextIsolation: false) while browser and non-Electron rendering paths are constrained to stored XSS, restricting work to those paths during the upgrade window limits the impact to script execution in the note context rather than host command execution; that is a scope reduction, not a fix, and the vendor's corrected build remains the only complete remedy.

Affected VersionsENISA

SiYuan 0 <3.8.10

Affected Packages

euvd siyuan fix: 3.8.10

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

SiYuan stores block attributes in kramdown IAL properties, and a table block's caption attribute is persisted there verbatim during import or sync rather than being HTML-transformed. At render time the caption IAL value is entity-unescaped and emitted into the preview document, so an entity-encoded value such as &lt;img src=x onerror=...&gt; is decoded into a live DOM node - a CWE-94 code-injection class flaw in which markup is treated as trusted content. The advisory's PoC shows the /api/export/preview kernel endpoint returning an active, unsanitized <caption> element with a working onerror handler. In the desktop build the front end assigns that response directly to previewElement.innerHTML on the local-kernel path (app/src/protyle/preview/index.ts) with no DOMPurify, inside an Electron window configured nodeIntegration: true, contextIsolation: false, webSecurity: false (app/electron/main.js, v3.8.9), so the injected script reaches require() and child_process. The advisory notes this is a follow-up variant of CVE-2026-39846, and every release up to and including v3.8.9 was verified vulnerable.

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:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
vuln.today AI 9.6 CRITICAL

Content delivered via import/sync is network-reachable and unauthenticated (AV:N/PR:N) but needs victim preview (UI:R); the Electron nodeIntegration escape to OS code execution gives S:C and full 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:P/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
None
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
Nov 18, 2026 - 13:02 EUVD
CVE Published
Nov 18, 2026 - 11:33 cve.org
CRITICAL 9.4

DescriptionCVE.org

SiYuan before 3.8.10 persists a table block's caption attribute into IAL properties without HTML sanitization, causing stored cross-site scripting upon import or sync. Attackers can inject an entity-encoded caption with an onerror handler that executes in the Electron client's nodeIntegration context to achieve remote code execution.

Technical POC Analysis

Bug class: CWE-94, Improper Control of Generation of Code, manifesting as stored XSS that becomes client-side RCE.

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

A critical security flaw in SiYuan Note (versions through 3.8.9) allows malicious documents to execute arbitrary code on a victim's computer when previewed, potentially leading to full system compromise. This puts users who import or sync shared notebooks at risk, and while no active exploitation has been observed, the availability of a working exploit and the application's use in sensitive environments mean leadership should prioritize remediation to protect data and maintain trust.

Business Impact: High
Compensating Controls

Apply vendor patch: upgrade to SiYuan v3.8.10.

Threat Intelligence Overview

EPSS Score
0.7%
Top 48% exploitable
Prevalence
Low
niche self-hosted open-source PKM note app, enthusiast user base
Data Quality
4 sources
Confidence: Medium

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 0.7%
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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: +1
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.

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

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