Skip to main content

SiYuan CVE-2026-59855

HIGH
Basic XSS (CWE-80)
2026-07-09 GitHub_M
8.6
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Craft asset link with double-quote payload
  2. Delivery
    Deliver via shared or imported document
  3. Exploit
    Victim opens asset in SiYuan
  4. Execution
    Path interpolated into innerHTML, handler injected
  5. Persist
    JavaScript runs in Electron renderer
  6. Impact
    Execute OS commands on host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTML tag escaping
MITRE ATT&CK

1 technique across 1 tactic: 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 victim to open or render a crafted asset link - an asset whose this.path value contains a double quote to escape the src attribute of the generated <img>/asset HTML and inject an event handler - inside the SiYuan Electron desktop client prior to 3.7.1. The limiting factor is active user interaction (UI:A): the attacker must deliver a malicious document/asset (via a shared note, imported workspace, exported template, or synced content) and the victim must open it; there is no unattended remote path. Successful OS command execution further depends on running the Electron desktop app (renderer with OS capabilities) rather than a locked-down/browser-only deployment. No authentication of the attacker is needed (PR:N), but the required content delivery and user action bound realistic exploitation.

Impact

The vendor CVSS 4.0 base score is 8.6 with vector AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H - network reachable, low complexity, no privileges, but active user interaction required, with high impact to confidentiality, integrity and availability of the vulnerable system. The high severity is driven by the Electron RCE outcome rather than by ease of unattended exploitation: the UI:A requirement (a user must open the crafted asset/document) meaningfully lowers real-world exploitability compared to a zero-click bug. No EPSS score was provided in the input, and there is no KEV listing and no known POC, so exploitation signals are absent - this is a high-impact but not-yet-actively-exploited issue. The main uncertainty is delivery: risk depends on whether attackers can get a victim to import or open a malicious document/asset, which is plausible given SiYuan's note-sharing use cases but is not a default remote-unauthenticated path.

Exploit ScenarioDerived

An attacker crafts a SiYuan document containing an asset link whose path includes a double quote plus an injected event handler, then shares it (e.g., a community template, exported note, or shared workspace). When the victim opens the document in the SiYuan desktop app, Asset.render writes the malformed path into innerHTML, the injected handler fires, and JavaScript runs in the Electron renderer to execute OS commands on the victim's machine. No public POC is currently identified, but the low attack complexity means a working exploit is straightforward to build.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 09, 2026

Cross-site scripting escalating to remote code execution in SiYuan (open-source personal knowledge management) before 3.7.1 lets an attacker embed a crafted asset link whose path contains a double quote, breaking out of an image src attribute in Asset.render to inject an event handler. Because SiYuan runs in an Electron renderer with OS-level capabilities, the injected JavaScript can execute arbitrary operating-system commands on the victim's machine once the malicious asset is opened. No public exploit identified at time of analysis, and it is not listed in CISA KEV; user interaction is required to trigger the flaw.

RemediationAI

Vendor-released patch: upgrade to SiYuan 3.7.1 (or 3.7.1-alpha.2), which sanitizes the asset path before it is written to innerHTML; the fix is commit efbe3a557720034782643e55c9e0282530cb6bbb (https://github.com/siyuan-note/siyuan/commit/efbe3a557720034782643e55c9e0282530cb6bbb) and is described in advisory GHSA-w3gq-5j72-36vc. Until upgrading, avoid opening or importing documents and asset links from untrusted or shared sources, since the malicious payload travels inside asset paths; treat imported .sy documents and shared workspaces as untrusted input. As a defense-in-depth measure, run SiYuan under a restricted OS account to limit the blast radius of renderer-to-OS command execution, accepting the trade-off that this does not prevent data theft from the workspace itself.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

SiYuan is an Electron-based desktop knowledge-management application; the vulnerable code is Asset.render in app/src/asset/index.ts, which builds an HTML string by interpolating the unsanitized this.path property directly into markup that is then assigned to innerHTML. This maps to CWE-80 (Improper Neutralization of Script-Related HTML Tags), a stored/DOM XSS class where attacker-controlled data is written into the DOM without escaping quotes or angle brackets. In a browser this yields ordinary XSS, but in an Electron renderer with Node/OS integration the executing JavaScript can reach OS command execution, turning a markup-injection bug into full RCE. The single affected component per CPE is cpe:2.3:a:siyuan-note:siyuan (all versions prior to the fix).

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 (GitHub_M) PRIMARY 8.6 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.8 HIGH

Remotely deliverable content but requires the victim to open the crafted asset (UI:R); no attacker privileges (PR:N); Electron renderer RCE yields high C/I/A; scope unchanged as impact stays within the app's OS context.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/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:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

DescriptionCVE.org

SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, Asset.render in app/src/asset/index.ts interpolates the unsanitized this.path value into HTML assigned to innerHTML, allowing a crafted asset link containing a double quote to break out of the src attribute, inject an event handler, and execute JavaScript that can run OS commands in the Electron renderer. This issue is fixed in versions 3.7.1-alpha.2 and 3.7.1.

Executive ViewAI

Why It Matters

SiYuan knowledge management tool (versions before 3.7.1) enables remote code execution on user machines through a cross-site scripting flaw in asset handling. An attacker can execute arbitrary commands with the privileges of the user running SiYuan, risking theft or destruction of sensitive organizational knowledge stored in the application and potential use of compromised machines for further network penetration.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict SiYuan users to locally-sourced assets only and prohibit opening asset links from external parties; (2) disable or uninstall SiYuan on systems handling classified or high-value data; (3) implement user awareness training emphasizing asset source verification; (4) enable endpoint detection monitoring for suspicious child processes spawned from SiYuan.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Low
niche open-source note-taking app, limited enterprise footprint
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment CIRCL 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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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
Partial

Priority Score

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

Affected Products (CPE)CVE.org

cpe:2.3:a:siyuan-note:siyuan:*:*:*:*:*:*:*:*

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