Skip to main content

SiYuan CVE-2026-54759

| EUVDEUVD-2026-39101 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-06-24 GitHub_M
8.7
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Publish malicious Bazaar package README
  2. Delivery
    Embed crafted <iframe> payload
  3. Exploit
    Victim views package details
  4. Execution
    Iframe bypasses Lute sanitizer
  5. Persist
    Electron permissive config executes commands
  6. Impact
    Arbitrary 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

Exploitation requires three concrete conditions: (1) the victim runs the SiYuan Electron desktop client (not a hardened web deployment), whose permissive security configuration permits an embedded iframe to reach OS-level execution; (2) the attacker can place a malicious <iframe> inside a Bazaar marketplace package README; and (3) the victim views that package's details page - passive user interaction (UI:P) is the gating factor, but package installation is explicitly NOT required. What limits exploitation: the dependency on the Electron client configuration, the need for the victim to actively browse to attacker-controlled marketplace content, and the requirement that the target run a version prior to 3.7.0.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N, score 8.7 High) indicates a network-reachable, low-complexity, unauthenticated attack with full impact to the victim system, gated only by passive user interaction (viewing a package). The single meaningful limiting factor is UI:P - a victim must browse to and view the malicious package's details in the Bazaar, and must be running the vulnerable Electron desktop client rather than a hardened/web deployment. No EPSS score, KEV listing, or POC was provided, so there is no evidence of active exploitation; the realistic risk is opportunistic (a poisoned marketplace listing) rather than mass-automated. This is a genuine high-priority issue for desktop users due to the RCE outcome, though the requirement to view attacker-controlled marketplace content keeps it short of zero-interaction wormable severity.

Exploit ScenarioDerived

An attacker publishes (or modifies) a SiYuan Bazaar package whose README embeds a crafted <iframe> pointing at content that abuses the Electron client's Node-enabled context. When a victim browsing the marketplace simply opens the package's details to evaluate it, the iframe renders and executes arbitrary OS commands under the victim's account - no install click required. No public POC is identified at this time, but the low complexity (AC:L) makes weaponization straightforward.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 24, 2026

Arbitrary command execution in the SiYuan Electron desktop client (versions prior to 3.7.0) allows a remote attacker to run OS commands on a victim's machine when they merely view a malicious Bazaar marketplace package's README. The root cause is that Lute's HTML sanitizer fails to strip <iframe> elements, which combine with the Electron client's permissive security settings (e.g. node integration / relaxed sandboxing) to escalate stored XSS into full code execution; notably no package installation is required, only viewing the package details. No public exploit has been identified at time of analysis, but the CVSS 4.0 score of 8.7 (High) reflects high confidentiality, integrity, and availability impact.

RemediationAI

Vendor-released patch: upgrade SiYuan to version 3.7.0 or later, which fixes Lute's sanitizer to strip <iframe> elements; see the advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-r6v5-4c66-f6pw. Until upgrading, avoid opening or viewing details of untrusted or unfamiliar Bazaar marketplace packages, since merely viewing a malicious README triggers the flaw (no installation needed) - the trade-off is reduced ability to evaluate community packages. Organizations can further reduce exposure by restricting use of the Bazaar marketplace within the Electron client or by isolating the desktop app from sensitive hosts; where feasible, using a sandboxed/web-served deployment rather than the permissive Electron client limits the escalation from XSS to command execution.

Affected VersionsENISA

SiYuan < 3.7.0

Affected Packages

euvd siyuan fix: 3.7.0

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 personal knowledge management system distributed as an Electron desktop application (CPE cpe:2.3:a:siyuan-note:siyuan). It uses Lute, SiYuan's own Markdown/HTML engine, to render user-supplied content. The flaw is a classic CWE-79 (Improper Neutralization of Input During Web Page Generation / Cross-Site Scripting): Lute's sanitizer allowlist did not remove <iframe> tags, so attacker-controlled HTML embedded in a Bazaar (community marketplace) package README is rendered live. Because Electron's renderer was configured permissively, the embedded iframe is not confined to a harmless web context and can reach Node/OS-level capabilities, turning a web-layer injection into native command execution - a markedly higher impact than browser-sandboxed XSS.

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

Network-delivered via marketplace content with no auth (PR:N), but requires the victim to view a malicious package (UI:R); Electron RCE yields full C/I/A impact.

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:P/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
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jun 24, 2026 - 23:03 EUVD

DescriptionCVE.org

SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, Lute's HTML sanitizer does not remove <iframe> elements. Combined with the SiYuan Electron client's permissive security configuration, an attacker can include a malicious <iframe> in a Bazaar package README that executes arbitrary commands on the victim's machine when the package details are viewed. No package installation is required. This vulnerability is fixed in 3.7.0.

Executive ViewAI

Why It Matters

SiYuan Electron desktop client (versions prior to 3.7.0) allows remote code execution through the Bazaar marketplace when users view a crafted package listing, with no additional user interaction required. Organizations deploying this software face unauthorized system access and data compromise risks.

Business Impact: High
Compensating Controls

Apply vendor patch: SiYuan 3.7.0 or later.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Low
niche open-source note-taking app, modest self-hosted/desktop user base
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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
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
Total

Priority Score

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

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