Skip to main content

SiYuan CVE-2026-65606

| EUVDEUVD-2026-48242 CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-07-23 disclosure@vulncheck.com GHSA-3vr3-hq5c-q2w9
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 siyuan://plugins/<unknown> link with img onerror icon
  2. Delivery
    Lure victim to click link in SiYuan Desktop
  3. Exploit
    Unknown plugin name opens custom tab
  4. Execution
    icon inserted via innerHTML fires onerror XSS
  5. Persist
    nodeIntegration renderer calls require('child_process').execSync
  6. Impact
    Arbitrary OS command execution on host

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

The attacker must get the victim to open a crafted siyuan://plugins/<name> deep link inside the SiYuan Desktop (Electron) application, where <name> deliberately does NOT match any installed plugin - that mismatch is what triggers the vulnerable tab-open code path - and the link must carry a malicious icon parameter containing an <img onerror=...> payload. Limiting factors: exploitation requires user interaction (the victim clicking/opening the link, CVSS UI:P), it targets the desktop Electron build whose renderer runs with nodeIntegration:true (browser/mobile access paths without that setting would not reach OS command execution), and only SiYuan versions before v3.7.2 are affected. No authentication is required (PR:N).

Impact

The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H with subsequent-system SC/SI/SA:H) rates this 9.4 Critical, reflecting network reach, low complexity, no privileges, and a scope-crossing impact from the renderer to the host OS. The single meaningful mitigating factor is UI:P - the victim must actively open the malicious siyuan:// link, so this is not a wormable, zero-interaction bug. No EPSS score, KEV entry, SSVC decision, or public PoC was provided, so there is no evidence of active exploitation and no public exploit identified at time of analysis; risk is currently theoretical-but-high because the technique (Electron nodeIntegration XSS-to-RCE) is well understood and reliable. Net: a genuine high priority for anyone running SiYuan Desktop, tempered only by the required user interaction and the fact that exploitation likely targets the Electron desktop client specifically rather than any browser-based access.

Exploit ScenarioDerived

An attacker embeds a link such as siyuan://plugins/notaplugin?icon=<img src=x onerror=require('child_process').execSync('calc')> in a shared note, web page, chat message, or document the victim is likely to open in SiYuan. When the victim clicks it, SiYuan opens a custom tab, injects the icon markup via innerHTML, the img onerror fires, and because the renderer has nodeIntegration:true the payload spawns an OS process. No public PoC was provided, but the low complexity (AC:L) and reliance only on a single user click (UI:P) make the technique straightforward.

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

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

Alert me

AnalysisAIv1 – Jul 23, 2026

Cross-site-scripting-to-RCE in the SiYuan Desktop note-taking application (versions before v3.7.2) lets a remote attacker achieve arbitrary OS command execution when a victim opens a crafted siyuan://plugins/<name> link. Because the Electron renderer runs with nodeIntegration:true, an unescaped icon parameter injected via innerHTML escalates a reflected XSS into full command execution through Node's child_process. No public exploit has been identified at time of analysis, but the flaw is trivially exploitable once a user is lured into clicking a malicious link (CVSS 4.0 base 9.4).

RemediationAI

Vendor-released patch: upgrade to SiYuan v3.7.2 or later, which is the fixed release per advisory GHSA-wp64-x7qh-h728 (https://github.com/siyuan-note/siyuan/security/advisories/GHSA-wp64-x7qh-h728). Until the upgrade is applied, reduce exposure by not clicking or opening untrusted siyuan:// links and by treating siyuan://plugins/<name> URIs from external content (notes, chat, web pages) as hostile; where feasible, unregister or restrict the siyuan:// custom protocol handler at the OS level to prevent third-party content from invoking the desktop app - note this side effect breaks legitimate deep-linking into SiYuan. The durable fix is to HTML-escape the icon parameter and to disable nodeIntegration / enable contextIsolation in the Electron renderer, but end users should rely on the v3.7.2 patch rather than patching source themselves.

Affected VersionsENISA

SiYuan 0 <3.7.2

Affected Packages

euvd siyuan fix: 3.7.2

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 an open-source, local-first personal knowledge-management/note-taking application whose desktop build is packaged with Electron. The vulnerability lives in the custom siyuan:// protocol handler: when a siyuan://plugins/<name> URI references a name that is not an installed plugin, the app opens a custom tab and writes the link's icon parameter directly into the tab header using innerHTML without HTML-encoding it (app/src/layout/Tab.ts). This is a classic CWE-79 (Improper Neutralization of Input During Web Page Generation) DOM-based injection that permits an <img onerror=...> payload. The severity is amplified by an unsafe Electron configuration (nodeIntegration:true), which exposes Node primitives such as require() to page script, so injected JavaScript can reach require('child_process').execSync() and run native OS commands.

Know when the next one hits your stack

  • 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

Remote link delivery (AV:N) with no auth (PR:N) but a required victim click (UI:R); XSS in the renderer crosses into OS command execution (S:C) with full C/I/A impact.

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
Jul 23, 2026 - 14:04 EUVD
CVE Published
Jul 23, 2026 - 12:18 cve.org
CRITICAL 9.4

DescriptionCVE.org

SiYuan before v3.7.2 contains a cross-site scripting vulnerability in the siyuan:// protocol handler. When a siyuan://plugins/<name> link references a name that is not an installed plugin, the application opens a custom tab and inserts the link's icon parameter into the tab header via innerHTML without escaping it (app/src/layout/Tab.ts), allowing injection of an <img onerror=...> element. Because the SiYuan Desktop renderer runs with nodeIntegration:true, the injected JavaScript can access Node's require and call require('child_process').execSync(...), escalating the cross-site scripting into arbitrary operating-system command execution.

Executive ViewAI

Why It Matters

SiYuan Desktop note-taking application (versions before v3.7.2) contains a critical remote code execution vulnerability triggered when users click malicious links. Although no public exploit currently exists, the flaw is trivially exploitable through social engineering, putting any employee at risk of complete system compromise and network lateral movement. No vendor patch is available, requiring immediate containment measures.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable siyuan:// URI scheme at OS and browser levels; (2) block siyuan:// links at email and collaboration tools; (3) restrict SiYuan to isolated non-production networks; (4) deploy EDR monitoring for abnormal child_process spawning from SiYuan; (5) conduct security awareness training on link safety and social engineering; (6) implement network segmentation to limit lateral movement if compromise occurs.

Threat Intelligence Overview

EPSS Score
0.5%
Top 59% exploitable
Prevalence
Low
open-source personal note-taking app, niche individual user base
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS 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 0.5%
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very 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.

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