Skip to main content

SiYuan CVE-2026-130681

| EUVDEUVD-2026-128755 CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-11-18 VulnCheck GHSA-mg8p-4rrj-qfxr
9.4
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Persist crafted Attribute View name via setAttrViewName API
  2. Delivery
    Victim opens database row attribute panel
  3. Exploit
    renderAVAttribute() inserts name unescaped via innerHTML
  4. Execution
    img onerror handler fires in Node-enabled renderer
  5. Impact
    Execute OS commands via child_process as user

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

Requires a stock SiYuan installation (<= 3.8.9) with a database (Attribute View) and a bound block whose attribute panel can be shown - no setting needs to be changed from defaults. The attacker must be able to persist an Attribute View name in the victim's workspace: on a default desktop install the local origin is granted Administrator with no access code, so the kernel API POST /api/transactions (setAttrViewName action) accepts the write; alternatively the name can arrive via sync, import, or a shared workspace (this is the PR:L precondition). Exploitation then requires the victim to actively open the specific database row's attribute panel (the row's Open control or block attribute panel), which triggers renderAVAttribute(). Full OS command execution occurs only in the desktop Electron app (nodeIntegration:true, contextIsolation:false reaching child_process); on the self-hosted web/Docker build the same stored name yields script execution in the kernel origin with the viewing user's session, not OS-level RCE. Limiting factors: attacker write access to a name, required user interaction opening the panel, and desktop build for OS code execution.

Impact

This is a genuine high-priority issue, not an inflated-CVSS artifact. The vuln.today Decision label is act_now and the CVSS 4.0 base is 9.4 (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), reflecting a network-reachable, low-complexity flaw that escalates from stored XSS to full operating-system command execution on the desktop build via Electron's nodeIntegration. Two signals temper raw severity. First, PR:L and UI:P/UI:R: the attacker must already be able to persist an Attribute View name (local Administrator origin on a default desktop install, or sync/import/shared-workspace routes), and a victim must open the specific database row attribute panel - so this is not drive-by remote-unauthenticated code execution despite AV:N. Second, no CISA KEV entry and no EPSS score are provided, so there is no evidence of active or widespread exploitation yet. Against that, a detailed working proof of concept is published by the reporter (VulnCheck) in the GHSA advisory, demonstrating id execution as root in a container on the official v3.8.9 AppImage, which materially raises practical risk. The net picture: a confirmed, reproducible XSS-to-RCE with a public PoC and a vendor fix, scoped by an attacker-write precondition and required user interaction rather than being internet-wormable.

Exploit ScenarioDerived

An attacker who can write into the victim's workspace - directly through the local kernel API (setAttrViewName), or indirectly via a synced, imported, or shared note - stores an Attribute View name containing <img src=x onerror=...>. When the desktop user later opens that database row's attribute panel, renderAVAttribute() injects the name unescaped through innerHTML, the onerror handler fires in the Node-enabled Electron renderer, and it calls require('child_process') to run OS commands as the logged-in user. A working PoC demonstrating RCE on v3.8.9 is published in the advisory (gist), so exploitation is reproducible; network attack vector with low complexity applies, but exploitation still requires attacker write access and the victim opening the panel.

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

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

Alert me

AnalysisAIv1 – Nov 18, 2026

Stored cross-site scripting in SiYuan through 3.8.9 lets an attacker who can persist an Attribute View name execute operating-system commands on the desktop app when a victim opens the database row attribute panel. It is an incomplete fix for CVE-2026-44670 because renderAVAttribute() still interpolates table.avName into the panel header and assigns it through innerHTML or insertAdjacentHTML, while the kernel stores the name without HTML escaping. A public proof-of-concept reference, including a recorded working run on v3.8.9, exists; the vendor fixed the issue in v3.8.10, and no KEV confirmation is present in the supplied data.

RemediationAI

Upgrade to SiYuan v3.8.10 or later; the vendor advisory GHSA-7gj8-xf7w-hfjf and package data identify v3.8.10 as the fixed release. The referenced commit d3af9d57 is cited in the public write-up as the still-vulnerable revision, so apply the v3.8.10 release rather than relying on that commit alone. Until upgrading, restrict who can persist Attribute View names and avoid opening database row attribute panels from untrusted, synced, imported, or shared workspaces; for self-hosted deployments, limit access to the kernel API and review shared workspaces before use. These controls reduce exposure but do not remove an already stored payload, and they can interfere with collaboration, sync, and import workflows.

Affected VersionsENISA

SiYuan 0 <3.8.10

Affected Packages

euvd siyuan fix: 3.8.10

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 a local-first note-taking and knowledge-management application with a Go kernel and an Electron/TypeScript renderer; Attribute Views are its database-like views. CWE-79 stored XSS occurs because the kernel setAttrViewName path trims and length-limits the name but does not HTML-escape it, and renderAVAttribute() later builds the database row attribute panel header with the raw table.avName value before assigning it through innerHTML or insertAdjacentHTML. The earlier CVE-2026-44670 fix escaped the document title, shared database header, and relation-editor placeholder, but missed this panel-header sink. On desktop builds the renderer runs with nodeIntegration true and contextIsolation false, so injected JavaScript can reach require('child_process'); on the official Docker/web build the same stored name runs in the kernel origin with the viewing user's session, not as OS-level command execution. The assessed vector uses PR:L, reflecting an attacker who can persist an Attribute View name in the victim's workspace, and exploitation requires the victim to open the specific row's attribute panel.

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 (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 workspace write to persist the name (PR:L) and the victim must open the panel (UI:R); the Node-enabled renderer escapes to the OS user (S:C) giving 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:A/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 3.8.10 contains a stored cross-site scripting vulnerability, an incomplete fix for CVE-2026-44670, because renderAVAttribute() inserts an Attribute View name unescaped into the database row attribute panel header. Attackers who can persist the name, such as via the setAttrViewName action, can inject an onerror handler that runs OS commands through Node.js when a desktop user opens the panel.

Technical POC Analysis

CWE-79: Improper Neutralization of Input During Web Page Generation.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A critical stored cross-site scripting vulnerability in SiYuan desktop versions up to 3.8.9 enables an attacker who can persist a crafted Attribute View name to execute operating-system commands when a victim opens the database row attribute panel. This puts individual users and their organizations at risk of full workstation compromise, data theft, and lateral movement, and warrants immediate leadership attention given the availability of a working proof-of-concept and the product's use in knowledge management workflows.

Business Impact: High
Compensating Controls

Apply vendor patch (v3.8.10).

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Low
niche open-source personal knowledge/note app, limited production footprint
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.4%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
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.

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