Skip to main content

SiYuan CVE-2026-74902

| EUVDEUVD-2026-60583 CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-08-18 VulnCheck GHSA-jwj6-pgg9-m3v5
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft file with script-payload filename
  2. Delivery
    Deliver file to victim (share/sync/chat)
  3. Exploit
    Victim drags, drops, or pastes into editor
  4. Execution
    insertAdjacentHTML injects unescaped filename
  5. Persist
    Script runs in Electron renderer
  6. Impact
    Execute OS commands as user

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 be running SiYuan before v3.7.4 and to actively drag, drop, or paste an attacker-supplied file into the editor - the malicious payload lives in the file's NAME, which must pass through the file-upload validation flow that calls insertAdjacentHTML without escaping. Limiting factors: the attack vector is local (AV:L), so the attacker must first deliver the crafted file to the victim's system or to a location the victim imports from, and passive user interaction (UI:P) is mandatory - the file must be brought into the editor by the user. No authentication to the application is required (PR:N), but there is no remote, no-interaction path; the flaw cannot be triggered against a default install without the victim performing the drag/drop/paste import action.

Impact

The vendor CVSS 4.0 score is 9.3 (critical), vector AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H with a scope change to subsequent systems (SC:H/SI:H/SA:H), reflecting the XSS-to-RCE impact. The local attack vector (AV:L) and passive user interaction (UI:P) are the key mitigating signals: this is not a remote unauthenticated internet drive-by - the attacker must get a maliciously named file to the victim, who must then drag, drop, or paste it into the editor. No EPSS score and no CISA KEV listing were provided, and there is no POC flag in the intelligence, so this reads as high-impact-but-interaction-gated rather than mass-exploited. Weighing the signals together - trivial payload construction, full OS command impact, and a plausible social-engineering delivery path - even a mid-sized municipal IT team in opole should treat this as urgent for any SiYuan deployment, but the risk is realized per-victim on file interaction rather than as automatable, wormable exploitation. Bottom line: a genuine high priority for organizations actually running SiYuan, tempered by the local vector and required user action.

Exploit ScenarioDerived

An attacker sends the victim a file whose filename contains an HTML/script payload (via a shared drive, chat attachment, or synced folder) and social-engineers them into importing it. When the victim drags, drops, or pastes the file into the SiYuan editor, the unescaped filename is injected via insertAdjacentHTML, the script executes in the privileged Electron renderer, and it runs OS commands as the user. No public exploit is identified at time of analysis, but the payload is simple to construct given the described flaw.

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

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

Alert me

AnalysisAIv1 – Aug 18, 2026

Cross-site scripting escalating to full remote code execution in SiYuan, an Electron-based personal knowledge-management and note-taking application, affects all releases before v3.7.4. The file-upload validation flow inserts unescaped filenames into the DOM via insertAdjacentHTML, so a filename carrying a script payload runs in the privileged renderer and reaches OS command execution when a victim drags, drops, or pastes the file into the editor. Reported by VulnCheck and fixed in v3.7.4; no public exploit identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade SiYuan to v3.7.4 or later, which escapes filenames before DOM insertion; this is the primary and recommended fix, per vendor advisory GHSA-jf56-jrhq-j2qp (https://github.com/siyuan-note/siyuan/security/advisories/GHSA-jf56-jrhq-j2qp). Until patched, the practical compensating control is behavioral and workflow-based: instruct users not to drag, drop, or paste files that originate from untrusted sources or that carry suspicious or attacker-controllable filenames, since the trigger is file interaction inside the editor (trade-off: relies on user discipline and disrupts normal note-taking). Where feasible, rename incoming files to sanitized names before importing them into SiYuan, and restrict who can place files into shared or synced workspaces that a SiYuan user might import (trade-off: adds a manual pre-processing step). Given the Electron RCE impact, running the client under a least-privileged OS account limits blast radius but does not prevent code execution. Cite exact fix version v3.7.4 when scheduling the upgrade; do not rely on workarounds as a permanent substitute.

Affected VersionsENISA

SiYuan 0 <3.7.4

Affected Packages

euvd siyuan fix: 3.7.4

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 is a self-hosted, offline-first note-taking application built on Electron, so its renderer process typically has access to Node.js/OS-level capabilities. The root cause is CWE-79 (improper neutralization of input during web page generation): during file-upload validation the application constructs an HTML fragment from the user-supplied filename and injects it with insertAdjacentHTML() without HTML-escaping. Because insertAdjacentHTML parses and activates markup, a crafted filename (for example one embedding an <img onerror=...> handler) executes as code in the editor context rather than being rendered as inert text. In an Electron app with node integration or exposed bridges, this DOM XSS escalates from script execution to arbitrary OS command execution. The affected CPE is cpe:2.3:a:siyuan-note:siyuan:*, covering the SiYuan application across platforms.

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.3 CRITICAL
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
vuln.today AI 8.6 HIGH

Local delivery of a crafted file plus required user drag/drop/paste gives AV:L and UI:R; renderer XSS escaping to OS command execution justifies S:C and C/I/A:H with no application auth (PR:N).

3.1 AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
4.0 AV:L/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
Local
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
Aug 18, 2026 - 12:02 EUVD
CVE Published
Aug 18, 2026 - 11:19 cve.org
CRITICAL 9.3

DescriptionCVE.org

SiYuan before v3.7.4 contains a cross-site scripting vulnerability in the file upload validation flow that fails to escape filenames before inserting them into HTML via insertAdjacentHTML. Attackers can craft a malicious filename containing script payloads that execute with full OS command access when a user drags, drops, or pastes the file into the editor.

Executive ViewAI

Why It Matters

SiYuan versions before v3.7.4 contain a critical remote code execution vulnerability triggered through file-upload handling, allowing arbitrary system command execution when users open or interact with malicious files. All users of affected versions face complete system compromise without patching. Immediate upgrade to v3.7.4 is required to eliminate this exposure.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Low
niche open-source self-hosted note-taking app, limited enterprise footprint
Data Quality
6 sources
Confidence: High

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.1%
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
Small
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

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

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

More in Siyuan

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

CVE-2026-29183 CRITICAL POC
9.3 Mar 06

Reflected XSS in SiYuan knowledge management before 3.5.9.

CVE-2026-25539 CRITICAL POC
9.1 Feb 04

SiYuan knowledge management system prior to 3.5.5 has a path traversal in /api/file/copyFile allowing arbitrary file ope

CVE-2024-2692 CRITICAL POC
9.0 Apr 04

SiYuan version 3.0.3 allows executing arbitrary commands on the server. Rated critical severity (CVSS 9.0), this vulnera

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