Skip to main content

SiYuan CVE-2026-73042

CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-08-15 disclosure@vulncheck.com
9.4
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Recon
    Gain low-priv edit access to shared workspace
  2. Delivery
    Inject markup via database field name/description
  3. Exploit
    Metadata stored in database menu
  4. Install
    Victim opens group/view/field-edit menu
  5. C2
    Unescaped interpolation fires event handler
  6. Execute
    Script reaches Node via insecure Electron
  7. Impact
    Execute arbitrary code 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

Exploitation requires (1) attacker ability to write a SiYuan database field name or description - i.e., low-privileged authenticated/edit access to a shared, collaborative, or synced workspace (matching PR:L); (2) a victim who opens the specific group, view, or field-edit menu that renders the poisoned metadata (UI:P - passive but required interaction); (3) a SiYuan version before v3.7.4; and (4) the default insecure Electron configuration that exposes Node built-ins, which is what elevates the XSS to RCE. Limiting factors: the payload does not fire on its own, so a purely single-user local instance with no imported/shared content has minimal exposure, and an attacker with no write path into the target's databases cannot deliver the payload.

Impact

The signals are largely consistent and point to a genuine high priority: the CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P) combined with full confidentiality, integrity, and availability impact on both the vulnerable and subsequent system (VC/VI/VA and SC/SI/SA all High) reflects an XSS-to-RCE chain, which the 9.4 score captures. The practical gating factors are that the attacker needs low-privilege write access to inject the metadata and the victim must open a specific menu (UI:P), so this is not a spray-and-pray internet worm but a realistic threat in any shared, synced, or collaboratively edited SiYuan workspace - even a mid-sized municipal IT team in swidnica running shared notebooks should treat this as urgent because a single poisoned field can compromise every operator who views it. No EPSS score, KEV entry, or confirmed public POC was provided, so exploitation is currently theoretical-but-credible rather than observed in the wild; the absence of a KEV listing should not lower urgency given the RCE outcome and the low attack complexity. Overall this is a real priority to patch, not a high-CVSS-but-low-real-risk finding.

Exploit ScenarioDerived

In a shared or synced SiYuan workspace, a low-privileged attacker creates or edits a database field and sets its name or description to markup that closes the surrounding element and attaches a malicious event handler. When a teammate later opens the group, view, or field-edit menu for that database, the injected handler executes and, thanks to Electron's insecure configuration, invokes Node.js APIs to run arbitrary commands on the victim's machine. No public POC has been identified, but the attack complexity is low.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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 – Aug 15, 2026

Stored cross-site scripting in SiYuan before v3.7.4 escalates to remote code execution because the desktop client renders database menu metadata (group, view, and field-edit menus) through unsafe HTML interpolation. An attacker who can set a database field name or description injects markup that closes the containing element and fires an event handler; when a victim opens the affected menu, the script runs with Node.js built-ins available due to Electron being configured without sandboxing/context isolation. No public exploit has been identified at time of analysis, and the issue is not listed in CISA KEV.

RemediationAI

Vendor-released patch: upgrade to SiYuan v3.7.4 or later, which properly escapes database menu metadata during HTML interpolation; this is the primary and complete fix. Until the upgrade is applied, reduce exposure by not opening group, view, or field-edit menus on databases sourced from untrusted parties, and avoid importing or syncing notebooks/databases from untrusted origins, since the payload triggers when the affected menu is rendered (trade-off: this disrupts normal collaborative and shared-workspace workflows). For shared or multi-user deployments, restrict who can create or edit database field names and descriptions to trusted users as a compensating control. Refer to the GitHub advisory (GHSA-gcm3-qcq3-72rv) and the VulnCheck advisory for authoritative details.

Affected ProductsAI

SiYuan desktop (Electron) note-taking application, all versions before v3.7.4, is affected; the flaw is fixed in v3.7.4. No CPE string was provided in the intelligence, so the exact platform enumeration is not independently confirmed, though SiYuan ships cross-platform (Windows, macOS, Linux) Electron builds. Vendor and researcher advisories are available at the GitHub Security Advisory (https://github.com/siyuan-note/siyuan/security/advisories/GHSA-gcm3-qcq3-72rv) and VulnCheck (https://www.vulncheck.com/advisories/siyuan-before-remote-code-execution-via-menu-metadata).

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 a local-first, Electron-based personal knowledge-management and note-taking application whose database blocks support user-defined fields, views, and groupings. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation): field names and descriptions are stored verbatim and later concatenated into menu HTML without escaping, so attacker-controlled values are parsed as markup rather than text. Because the renderer runs in an Electron context with insecure settings (effectively nodeIntegration enabled and/or contextIsolation disabled), a successful DOM-based script injection is not confined to the page - it can reach Node.js primitives (e.g., child_process/require), turning a classic stored XSS into full host code execution.

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

Attacker needs low-privilege write access (PR:L) and victim must open the menu (UI:R); the XSS escaping Electron to Node execution is a scope change (S:C) yielding full C/I/A impact.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/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
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

DescriptionCVE.org

SiYuan before v3.7.4 fails to properly escape database menu metadata in HTML interpolation, allowing stored values to execute script when users open group, view, or field-edit menus. Attackers can inject markup through field descriptions or names that close containing elements and execute arbitrary code via event handlers, reaching Node built-ins due to Electron's insecure configuration.

Executive ViewAI

Why It Matters

SiYuan desktop application contains a critical vulnerability enabling remote code execution through database manipulation, creating enterprise-wide risk of system compromise and data breach. While not yet publicly exploited, the vulnerability threatens all desktop users and requires immediate containment pending patch availability. Absence of vendor-released patch creates urgent operational risk requiring protective action within 24 hours.

Business Impact: Severe
Compensating Controls

Restrict database field-name and field-description editing to a minimal set of trusted administrative accounts; implement network segmentation to isolate SiYuan desktop systems from production environments and sensitive data repositories; deploy host-based intrusion detection configured to alert on shell commands or binary execution initiated by the SiYuan process; audit existing database field metadata for suspicious content that could trigger the vulnerability; require multi-factor authentication for accounts with database editing privileges; and conduct user awareness training to avoid opening untrusted database files or accepting field-editing changes from external sources.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Low
niche local-first Electron note-taking app, limited enterprise footprint
Social Media
3
Sightings
Data Quality
5 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.3%
Patch available No
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
Very 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.

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