Skip to main content

SiYuan EUVDEUVD-2026-48241

| CVE-2026-65605 CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-07-23 disclosure@vulncheck.com GHSA-99f6-8pmj-83xw
9.4
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Recon
    Craft <img onerror=...> payload in Template column
  2. Delivery
    Deliver via shared/synced/imported notebook
  3. Exploit
    Victim opens Attribute View database
  4. Install
    Payload bypasses HasUnclosedHtmlTag, inserted via innerHTML
  5. C2
    onerror fires in nodeIntegration renderer
  6. Execute
    require reaches child_process
  7. Impact
    Execute arbitrary OS commands

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 open/view a SiYuan Attribute View (database) containing an attacker-controlled Template column whose value includes a balanced self-closing HTML tag (e.g. <img ... onerror=...>) that bypasses the HasUnclosedHtmlTag check and reaches innerHTML - the injection point is specifically the Template column, not arbitrary cells. Full RCE additionally requires the desktop Electron renderer with nodeIntegration enabled (the default desktop build); on that platform the payload reaches require. Limiting factors: passive user interaction is mandatory (the database must be viewed - UI:P), and the attacker must first get the malicious content into a database the victim opens, so the realistic vector is shared, synced, or imported notebooks rather than a purely arbitrary internet-based attack; a pure web/non-nodeIntegration context would be limited to XSS impact without the command-execution escalation.

Impact

The vendor CVSS 4.0 base score is 9.4 (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H), reflecting network reach, low complexity, no privileges, only passive user interaction, and total compromise of both the vulnerable and subsequent (OS) systems - the subsequent-system impacts are justified by the nodeIntegration escape to arbitrary command execution. No EPSS score, KEV entry, or explicit POC flag is present in the supplied data, so real-world exploitation volume cannot be quantified from these signals alone; the honest read is high technical severity with unproven in-the-wild activity. One tension worth flagging: PR:N and UI:P imply an unauthenticated remote attacker, but SiYuan is predominantly a local, single-user desktop notebook - practical exploitation depends on the attacker first getting malicious content into a database the victim opens (e.g. a shared workspace, synced notebook, or imported document), which is a real but non-trivial delivery step not captured by the raw vector. Treat this as a genuine high-priority patch item for anyone using SiYuan databases with any externally-sourced content, while recognizing widespread automated exploitation is not evidenced.

Exploit ScenarioDerived

An attacker crafts a database entry whose Template column contains <img src=x onerror='require("child_process").exec("...")'> and delivers it to a victim through a shared workspace, synced notebook, or imported document. When the victim opens the Attribute View and the cell is rendered via innerHTML, the onerror handler fires in the nodeIntegration-enabled renderer and executes arbitrary OS commands on the victim's machine. No public POC code was identified in the provided data, though the mechanism is described in detail in the VulnCheck advisory.

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

Stored cross-site scripting leading to remote code execution in SiYuan (self-hosted note-taking application) before v3.7.2 allows an attacker to run arbitrary OS commands when a victim views a database. A Template-column value in the Attribute View is rendered through Go's text/template without auto-escaping, and the EscapeHTML safeguard is bypassed by balanced self-closing tags like <img>, so a payload such as <img src=x onerror=...> is stored raw and later injected via innerHTML; because the Electron desktop renderer runs with nodeIntegration enabled, the script reaches require and escalates to command execution. No public exploit identified at time of analysis, and it is not listed in CISA KEV, though a detailed VulnCheck advisory and vendor GHSA describe the flaw.

RemediationAI

Upgrade to SiYuan v3.7.2 or later, which contains the fix referenced by vendor advisory GHSA-pw5c-qhf3-jhwh (https://github.com/siyuan-note/siyuan/security/advisories/GHSA-pw5c-qhf3-jhwh) and commit 41f2861c87575ff5ac4b50a0520b1a4fe55b4a70. Because the fix corrects both the escaping heuristic and the rendering path, patching is the primary and recommended action. Until upgrading, reduce exposure by not opening or importing databases/notebooks from untrusted or shared sources and by avoiding Template columns populated with externally-supplied content, since these are the injection vectors; the trade-off is loss of collaboration/import convenience. Hardening the Electron shell by disabling nodeIntegration (or enabling contextIsolation) would downgrade a successful XSS from RCE to browser-context script execution, but this is generally only feasible via an official build change, not end-user configuration, and may break app functionality.

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

The vulnerability lives in SiYuan's Attribute View (its database/table feature) cell rendering path. Template columns are evaluated with Go's text/template package, which - unlike html/template - performs no contextual auto-escaping, placing the burden of sanitization on the application. SiYuan attempts to compensate by calling EscapeHTML only when a helper, HasUnclosedHtmlTag, returns true. That heuristic assumes dangerous markup manifests as an unclosed tag, but balanced void/self-closing elements such as <img src=x onerror=...> are structurally complete and slip past the check, so the malicious HTML is persisted unescaped and subsequently written to the DOM through innerHTML. This is a classic CWE-79 (Improper Neutralization of Input During Web Page Generation) failure, compounded by the Electron trust model: with nodeIntegration enabled the renderer has direct access to Node's require, converting a browser-context XSS into full host command 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:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
vuln.today AI 9.6 CRITICAL

Stored XSS delivered remotely with no privileges but requiring the victim to view the database (UI:R); S:C because the nodeIntegration escape crosses from browser context to full OS command execution, giving high C/I/A.

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 stored cross-site scripting vulnerability in Attribute View (database) cell rendering. A Template column value is rendered as HTML via text/template without auto-escaping, and EscapeHTML is only applied when HasUnclosedHtmlTag returns true; because balanced self-closing tags such as <img> are skipped by that check, a payload like <img src=x onerror=...> is stored unescaped and later inserted into the page via innerHTML, executing when the database is viewed. Because the desktop renderer runs with nodeIntegration enabled, the injected script can reach require and escalate to arbitrary command execution.

Executive ViewAI

Why It Matters

SiYuan v3.7.1 and earlier contains a critical stored cross-site scripting vulnerability enabling arbitrary operating system command execution when users view specially crafted databases; no public exploit has been identified. An attacker can inject malicious code into Template columns within Attribute Views that executes with full Electron application privileges, resulting in complete system compromise. This enables unauthorized data access, system takeover, and lateral movement into organizational networks.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: network isolation of SiYuan instances to trusted internal networks only; restriction of database access to pre-vetted, trusted users; implementation of application-level input filtering to block HTML tags and event handlers in Template columns; containerization or virtualization of SiYuan to limit OS command execution impact; and comprehensive logging and monitoring of SiYuan process execution to detect suspicious commands.

Threat Intelligence Overview

EPSS Score
0.5%
Top 59% exploitable
Prevalence
Medium
popular open-source self-hosted note app, sizable but non-enterprise user base
Data Quality
7 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