Skip to main content

SiYuan EUVDEUVD-2026-144312

| CVE-2026-145062 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-12-04 VulnCheck
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft .sy.zip with img onerror in attribute name
  2. Delivery
    Victim imports malicious package via importSY
  3. Exploit
    Victim opens document attribute panel
  4. Execution
    openFileAttr renders name as innerHTML
  5. Persist
    onerror handler runs in kernel origin
  6. Impact
    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 the attacker to deliver a crafted .sy.zip whose custom- attribute NAME contains an img onerror payload - the import path is the required delivery vector because SiYuan's own writer rejects such names (isValidAttrName allows only [a-z][a-z0-9-]*, and /api/attr/setBlockAttrs returned code -1), while importSY0 keeps the JSON key verbatim via dataparser's Map2IAL. The victim must then import that package and open the imported document's Attributes panel (document menu → Attributes → openFileAttr), which renders the raw key into the dialog innerHTML. Limiting factors: user interaction is mandatory (importing an untrusted .sy.zip and opening the attribute panel), the editor block DOM looks clean because Lute's safeIALAttrs strips the key, and only versions 3.8.10 and 3.8.11-beta.3 are affected (fixed in 3.8.11). The only complete fix stated by the vendor is updating to v3.8.11.

Impact

This is a moderately high but not emergency-grade issue. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, score 8.7) and my own assessment agree that exploitation is network-delivered, low-complexity, and requires no attacker authentication but does require victim interaction (UI:P). The real-world severity is amplified by the impact: the GHSA advisory confirms the injected img onerror handler runs in the kernel origin and enables command execution on the host, so a successful stored-XSS lands as effective host code execution (VC/VI/VA:H). Countering that, exploitation is not drive-by: the attacker must get a victim to import an attacker-crafted .sy.zip and then open that document's attribute panel, which bounds this to social-engineering/supply-of-untrusted-notes scenarios rather than mass internet exploitation. The vuln.today priority is 'this_week' and there is no CISA KEV listing, so there is no confirmed active exploitation; a detailed PoC is embedded in the vendor advisory. No EPSS score and no SSVC automatable/exploitation values were supplied, so the quantitative exploitation-probability signal is missing - the prioritization rests on the advisory's confirmed mechanism plus the 'this_week' label, not on exploitation telemetry.

Exploit ScenarioDerived

An attacker publishes or shares a malicious SiYuan .sy.zip export whose custom block attribute name embeds an img tag with an onerror handler. A victim imports the package via /api/import/importSY and later opens the document's Attributes panel, at which point openFileAttr assigns the unescaped name into the dialog innerHTML and the handler fires in the kernel origin, leading to command execution on the host. A working PoC script is embedded in the GHSA advisory; it is not independently verified as a packaged exploit outside that advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

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

Alert me

AnalysisAIv1 – Dec 04, 2026

Stored cross-site scripting in SiYuan 3.8.10 and 3.8.11-beta.3 allows an attacker who supplies a crafted .sy.zip package to execute script in the kernel origin once the victim imports the package and opens the document's Attributes panel, an outcome that can escalate to command execution on the host. The flaw lives in openFileAttr, which interpolates custom block attribute names into the dialog's innerHTML without escaping, while the .sy.zip import path preserves JSON keys verbatim; SiYuan's own attribute writer rejects such names, so a malicious archive is the only delivery route. Exploitation is not automatic: the victim must import the archive and open the attribute panel, a public proof-of-concept accompanies the vendor advisory, and the issue is rated 8.7 with a this-week priority rather than emergency-grade urgency. No confirmed active exploitation is reported in the available data.

RemediationAI

Update to SiYuan v3.8.11, which is the release that closes the unescaped interpolation in openFileAttr and the only complete fix stated by the vendor; the advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-hg84-q73q-5p33 documents the change. Because the delivery vector is a malicious archive rather than a network-reachable endpoint, the practical interim control is to stop importing .sy.zip packages from untrusted or unsolicited sources and to restrict who can reach /api/import/importSY, with the trade-off that legitimate import and migration workflows stop working for those users until the upgrade lands. Blocking /api/attr/setBlockAttrs is not a useful mitigation, since isValidAttrName already rejects the malicious key names on that path and the archive import is the only confirmed way to introduce them. The related VulnCheck advisory (https://www.vulncheck.com/advisories/siyuan-3.8.10-before-3.8.11-stored-xss-via-imported-sy-zip-attribute-name) can be used to track remediation status.

Affected VersionsENISA

SiYuan 3.8.11-beta.3 <3.8.11
SiYuan 3.8.10 <3.8.11

Affected Packages

euvd siyuan fix: 3.8.11

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 root cause is CWE-79 (improper neutralization of input during web page generation) in the client rendering of block inline attributes. In app/src/menus/commonMenuItem.ts, openFileAttr walks every inline-attribute key containing "custom", concatenates the key minus its custom- prefix into a <span> and the raw key into a <textarea data-name="...">, then assigns the assembled markup to the dialog's innerHTML without escaping either interpolation. The import path does not constrain attribute names: importSY0 (kernel/model/import.go:386) parses each .sy document with siyuan-note/dataparser's ParseJSON, whose Map2IAL (sy.go:66) copies the JSON key verbatim into ret.Root.KramdownIAL, and importSY0 filters only the icon value. A key such as custom-ak<token><img src=... onerror='...'> therefore survives /api/import/importSY and is returned unmodified by /api/attr/getBlockAttrs and /api/block/getDocInfo, the latter stripping only on*-prefixed names via filterHandlerIALAttrs (kernel/model/blockinfo.go:70). The legitimate writer path is safe by construction: isValidAttrName (kernel/model/blockial.go:423,493) permits only [a-z][a-z0-9-]*, and /api/attr/setBlockAttrs returned code -1 against the payload during testing, confirming import is the delivery vector. The editor block DOM also looks clean because Lute's safeIALAttrs (render/renderer.go:728) drops the key at render time, so the payload only fires when the attributes dialog itself is built. Because the handler runs in the kernel origin, injected script sits in the same trust domain as the desktop kernel process, which is what turns a stored XSS into host command execution. The CVSS:4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H) and the independently assessed CVSS:3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) both reflect the requirement for victim interaction rather than any attacker-side complexity.

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 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 import with no attacker auth (PR:N) but mandatory victim import-and-open interaction (UI:R); unescaped attribute name yields host command execution, so C/I/A High.

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 (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
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Dec 04, 2026 - 17:18 EUVD
CVE Published
Dec 04, 2026 - 16:10 cve.org
HIGH 8.7

DescriptionCVE.org

SiYuan 3.8.10 before 3.8.11 fails to escape custom block attribute names from imported .sy.zip files in openFileAttr's attribute panel. Attackers can craft an attribute name containing an img onerror handler that runs in the kernel origin when a victim opens the attribute panel, enabling command execution on the host.

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 stored cross-site scripting vulnerability in SiYuan versions 3.8.10 and 3.8.11-beta.3 allows an attacker to execute arbitrary code on the host system if a user imports a malicious .sy.zip package and opens the document's Attributes panel. This affects organizations using SiYuan for note-taking or knowledge management, as it could lead to full system compromise and data breach. Leadership should prioritize patching or mitigating this risk due to the potential for lateral movement and sensitive data exposure.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: preventing users from importing .sy.zip packages from untrusted sources, restricting SiYuan's ability to execute child processes, segmenting networks to limit lateral movement, and monitoring for anomalous behavior.

Threat Intelligence Overview

Prevalence
Low
niche open-source personal knowledge/note app, limited enterprise footprint
Data Quality
4 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 HIGH
CISA KEV No
Public POC No
EPSS N/A
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

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-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-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-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